WordGPT

#330066 color

#330066 is a dark purple colour. It is rgb(51, 0, 102) in RGB and hsl(270, 100%, 20%) in HSL. Text in white reads better on it: the contrast is 15.76:1 against white and 1.33:1 against black.

#330066
#330066: #330066
Complementary#330066#336600Analogous#000066#330066#660066Triadic#330066#663300#006633Tetradic (square)#330066#660000#336600#006666Split complementary#330066#666600#006600
Complementary, analogous, triadic, tetradic and split-complementary palettes made from this colour
0800111100221a00332200442b0055330066552b807755999980b3bbaaccddd5e6
From dark shades (left, mixed with black) to light tints (right, mixed with white)

How to work it out

  1. 1

    A hex code is three pairs of base-16 digits: red, green and blue, from 00 (none) to FF (full).

    \mathrm{#330066}:\quad R=\mathrm{33}_{16}=51,\ G=\mathrm{00}_{16}=0,\ B=\mathrm{66}_{16}=102
  2. 2

    HSL describes the same colour as a hue angle on the colour wheel (0° red, 120° green, 240° blue), a saturation and a lightness.

    H=270∘,S=100%,L=20%H=270^\circ,\quad S=100\%,\quad L=20\%
  3. 3

    The complementary colour sits opposite on the wheel: add 180° to the hue.

    270^\circ + 180^\circ = 90^\circ ;\Rightarrow; \mathrm{#336600}
  4. 4

    Contrast is the ratio of the lighter to the darker relative luminance, each plus 0.05. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text (AA).

    contrast=L1+0.05L2+0.05=15.76:1 (on white)\text{contrast} = \frac{L_1+0.05}{L_2+0.05} = 15.76:1\ \text{(on white)}
LaTeX source of the formulas on this page
\[ \mathrm{#330066} = \mathrm{rgb}(51, 0, 102) \]
\[ \mathrm{#330066}:\quad R=\mathrm{33}_{16}=51,\ G=\mathrm{00}_{16}=0,\ B=\mathrm{66}_{16}=102 \]
\[ H=270^\circ,\quad S=100\%,\quad L=20\% \]
\[ 270^\circ + 180^\circ = 90^\circ ;\Rightarrow; \mathrm{#336600} \]
\[ \text{contrast} = \frac{L_1+0.05}{L_2+0.05} = 15.76:1\ \text{(on white)} \]

#330066 in every colour format

FormatValue
HEX#330066
RGBrgb(51, 0, 102)
RGB (percent)rgb(20.0%, 0.0%, 40.0%)
HSLhsl(270, 100%, 20%)
HSV / HSBhsv(270, 100%, 40%)
CMYKcmyk(50%, 100%, 0%, 60%)
Decimal3342438
Descriptiondark purple

Text contrast (WCAG)

Background of this colour with…ContrastAA normal (4.5)AA large (3)AAA normal (7)AAA large (4.5)
White text15.76:1passpasspasspass
Black text1.33:1failfailfailfail

Shades and tints

KindHex codes (darkest to lightest)
Shades (mixed with black)#080011 #110022 #1A0033 #220044 #2B0055
This colour#330066
Tints (mixed with white)#552B80 #775599 #9980B3 #BBAACC #DDD5E6

How it looks with colour blindness

TypeHexDistance from the original
Protanopia#00236824
Deuteranopia#00216424
Tritanopia#24233949
Grayscale#232323-

Nearest named colours

NameHex
Midnight blue#191970
Indigo#4B0082
Navy#000080
Rebecca purple#663399

Questions

What is the RGB value of #330066?

rgb(51, 0, 102): red 51, green 0, blue 102.

What is the HSL value of #330066?

hsl(270, 100%, 20%): a hue of 270°, 100% saturation and 20% lightness.

What is the complementary colour of #330066?

#336600, found by turning the hue by 180°. The inverted colour (each channel subtracted from 255) is #CCFF99.

Should I use white or black text on #330066?

White. White gives 15.76:1 and black 1.33:1; the better one passes WCAG AA for normal text.

What is the CMYK value of #330066?

cmyk(50%, 100%, 0%, 60%). This is a simple formula conversion; printed colours depend on the printer profile.

What is the closest named colour to #330066?

Midnight blue (#191970).

Matching colours

A little darker, a little lighter

Make a palette

    #330066 color: RGB, HSL, CMYK, shades and matching palettes | WordGPT