WordGPT

#331177 color

#331177 is a dark purple colour. It is rgb(51, 17, 119) in RGB and hsl(260, 75%, 27%) in HSL. Text in white reads better on it: the contrast is 14.12:1 against white and 1.49:1 against black.

#331177
#331177: #331177
Complementary#331177#557711Analogous#112277#331177#661177Triadic#331177#773311#117733Tetradic (square)#331177#771122#557711#117766Split complementary#331177#776611#227711
Complementary, analogous, triadic, tetradic and split-complementary palettes made from this colour
0803141106281a093c220b4f2b0e6333117755398e7760a49988bbbbb0d2ddd7e8
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{#331177}:\quad R=\mathrm{33}_{16}=51,\ G=\mathrm{11}_{16}=17,\ B=\mathrm{77}_{16}=119
  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=260∘,S=75%,L=27%H=260^\circ,\quad S=75\%,\quad L=27\%
  3. 3

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

    260^\circ + 180^\circ = 80^\circ ;\Rightarrow; \mathrm{#557711}
  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=14.12:1 (on white)\text{contrast} = \frac{L_1+0.05}{L_2+0.05} = 14.12:1\ \text{(on white)}
LaTeX source of the formulas on this page
\[ \mathrm{#331177} = \mathrm{rgb}(51, 17, 119) \]
\[ \mathrm{#331177}:\quad R=\mathrm{33}_{16}=51,\ G=\mathrm{11}_{16}=17,\ B=\mathrm{77}_{16}=119 \]
\[ H=260^\circ,\quad S=75\%,\quad L=27\% \]
\[ 260^\circ + 180^\circ = 80^\circ ;\Rightarrow; \mathrm{#557711} \]
\[ \text{contrast} = \frac{L_1+0.05}{L_2+0.05} = 14.12:1\ \text{(on white)} \]

#331177 in every colour format

FormatValue
HEX#331177
RGBrgb(51, 17, 119)
RGB (percent)rgb(20.0%, 6.7%, 46.7%)
HSLhsl(260, 75%, 27%)
HSV / HSBhsv(260, 86%, 47%)
CMYKcmyk(57%, 86%, 0%, 53%)
Decimal3346807
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 text14.12:1passpasspasspass
Black text1.49:1failfailfailfail

Shades and tints

KindHex codes (darkest to lightest)
Shades (mixed with black)#080314 #110628 #1A093C #220B4F #2B0E63
This colour#331177
Tints (mixed with white)#55398E #7760A4 #9988BB #BBB0D2 #DDD7E8

How it looks with colour blindness

TypeHexDistance from the original
Protanopia#002D7A22
Deuteranopia#00297520
Tritanopia#16304556
Grayscale#2B2B2B-

Nearest named colours

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

Questions

What is the RGB value of #331177?

rgb(51, 17, 119): red 51, green 17, blue 119.

What is the HSL value of #331177?

hsl(260, 75%, 27%): a hue of 260°, 75% saturation and 27% lightness.

What is the complementary colour of #331177?

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

Should I use white or black text on #331177?

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

What is the CMYK value of #331177?

cmyk(57%, 86%, 0%, 53%). This is a simple formula conversion; printed colours depend on the printer profile.

What is the closest named colour to #331177?

Midnight blue (#191970).

Matching colours

A little darker, a little lighter

Make a palette

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