Recognised as Colour
#1F0240
- #1F0240
- Violet
- Dark
- Nearest: Midnight blue
#1F0240 is a violet with RGB values 31, 2, 64 and HSL 268°, 94%, 13%. It is a dark colour, so white text on it reaches 18.4:1 contrast (AAA for normal text). The nearest named colour is Midnight blue.
Colour values
#1F0240#1F0240
HEX#1F0240
RGBrgb(31, 2, 64)
RGB (0–1)0.1216, 0.0078, 0.251
RGB percentages12.2%, 0.8%, 25.1%
HSLhsl(268.1, 93.9%, 12.9%)
HSV / HSBhsv(268.1, 96.9%, 25.1%)
CMYK51.6%, 96.9%, 0%, 74.9%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer2,032,192
CSS custom property--colour: #1F0240;
Brightness & contrast
Relative luminance0.00705WCAG 2.x, 0 is black and 1 is white
Perceived brightness27.5 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 18.41:1
Contrast with white18.41:1WCAG normal text: AAA
Contrast with black1.14:1WCAG normal text: Fail
Greyscale equivalent#0D0D0D
Inverted#E0FDBF
Colour vision & accessibility
Distinguishable without hueYesnever rely on hue alone to carry meaning
Contrast with white, large text18.41:1WCAG large text: AAA
Contrast with black, large text1.14:1WCAG large text: Fail
Named colours
Hue familyviolet
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#234002
Analogous#020440, #3E0240
Triadic#401F02, #02401F
Split complementary#403E02, #044002
Tetradic#400204, #234002, #02403E
Tints, shades & saturation
Channel breakdown
R31
G2
B64
Red31 (12.2%)
Green2 (0.8%)
Blue64 (25.1%)
Hue268.06°
Saturation (HSL)93.94%
Lightness12.94%
Dominant channelBlue
Hex per channelR 1F · G 02 · B 40
Keep nerding
Every link below is a page Nerdulator can generate from what it already knows about this value.
Harmonies
Similar named colours
Nerdulate something else
Nothing in mind? Surprise me · today’s page