Nerdulator> put something in

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

Protanopia#001442no red cones; affects about 1% of men; ΔE 15.7 from the original
Deuteranopia#00133Fno green cones; the most common form, about 1% of men; ΔE 16.5 from the original
Tritanopia#161422no blue cones; rare, and affects men and women equally; ΔE 33.7 from the original
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

Nearest named CSS colourMidnight blue (#191970)ΔE 19.59, a distinctly different colour
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

Lighter +40%#8016F8
Lighter +30%#6707D4
Lighter +20%#4F05A3
Lighter +10%#370471
Darker −10%#07000F
Darker −20%#000000
Darker −30%#000000
Darker −40%#000000
More saturated +25%#1F0042
Less saturated −25%#200A38

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.

Nerdulate something else

Nothing in mind? Surprise me · today’s page

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