Nerdulator> put something in

Recognised as Colour

#331F42

  • #331F42
  • Violet
  • Dark
  • Nearest: Dark slateblue

#331F42 is a violet with RGB values 51, 31, 66 and HSL 274°, 36%, 19%. It is a dark colour, so white text on it reaches 14.8:1 contrast (AAA for normal text). The nearest named colour is Dark slateblue.

Colour values

#331F42#331F42
HEX#331F42
RGBrgb(51, 31, 66)
RGB (0–1)0.2, 0.1216, 0.2588
RGB percentages20%, 12.2%, 25.9%
HSLhsl(274.3, 36.1%, 19%)
HSV / HSBhsv(274.3, 53%, 25.9%)
CMYK22.7%, 53%, 0%, 74.1%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer3,350,338
CSS custom property--colour: #331F42;

Brightness & contrast

Relative luminance0.02077WCAG 2.x, 0 is black and 1 is white
Perceived brightness42.9 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 14.84:1
Contrast with white14.84:1WCAG normal text: AAA
Contrast with black1.42:1WCAG normal text: Fail
Greyscale equivalent#262626
Inverted#CCE0BD

Colour vision & accessibility

Protanopia#172743no red cones; affects about 1% of men; ΔE 14.2 from the original
Deuteranopia#1C2841no green cones; the most common form, about 1% of men; ΔE 14.4 from the original
Tritanopia#31252Dno blue cones; rare, and affects men and women equally; ΔE 18.6 from the original
Distinguishable without hueYesnever rely on hue alone to carry meaning
Contrast with white, large text14.84:1WCAG large text: AAA
Contrast with black, large text1.42:1WCAG large text: Fail

Named colours

Nearest named CSS colourDark slateblue (#483D8B)ΔE 29.13, a distinctly different colour
Hue familyviolet
CSS keyword usableNo exact keyword

Colour harmonies

Complementary#2E421F
Analogous#211F42, #421F40
Triadic#42331F, #1F4233
Split complementary#40421F, #1F4222
Tetradic#42221F, #2E421F, #1F4042

Tints, shades & saturation

Lighter +40%#9C71BC
Lighter +30%#8350AA
Lighter +20%#694087
Lighter +10%#4E2F65
Darker −10%#180F1F
Darker −20%#000000
Darker −30%#000000
Darker −40%#000000
More saturated +25%#35134E
Less saturated −25%#312B36

Channel breakdown

R51
G31
B66
Red51 (20%)
Green31 (12.2%)
Blue66 (25.9%)
Hue274.29°
Saturation (HSL)36.08%
Lightness19.02%
Dominant channelBlue
Hex per channelR 33 · G 1F · B 42

Keep nerding

Every link below is a page Nerdulator can generate from what it already knows about this value.

Nerdulate something else

Nothing in mind? Surprise me · today’s page

Every value on this page was computed from “331f42” by Nerdulator’s colour engine. Nothing here was retrieved from a database of answers or written by a model.