Recognised as Colour
#21247F
- #21247F
- Blue
- Dark
- Nearest: Midnight blue
#21247F is a blue with RGB values 33, 36, 127 and HSL 238°, 59%, 31%. It is a dark colour, so white text on it reaches 12.9:1 contrast (AAA for normal text). The nearest named colour is Midnight blue.
Colour values
#21247F#21247F
HEX#21247F
RGBrgb(33, 36, 127)
RGB (0–1)0.1294, 0.1412, 0.498
RGB percentages12.9%, 14.1%, 49.8%
HSLhsl(238.1, 58.8%, 31.4%)
HSV / HSBhsv(238.1, 74%, 49.8%)
CMYK74%, 71.7%, 0%, 50.2%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer2,172,031
CSS custom property--colour: #21247F;
Brightness & contrast
Relative luminance0.03117WCAG 2.x, 0 is black and 1 is white
Perceived brightness54.1 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 12.94:1
Contrast with white12.94:1WCAG normal text: AAA
Contrast with black1.62:1WCAG normal text: Fail
Greyscale equivalent#2A2A2A
Inverted#DEDB80
Colour vision & accessibility
Distinguishable without hueShifts in lightness toonever rely on hue alone to carry meaning
Contrast with white, large text12.94:1WCAG large text: AAA
Contrast with black, large text1.62:1WCAG large text: Fail
Named colours
Hue familyblue
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#7F7C21
Analogous#21537F, #4D217F
Triadic#7F2124, #247F21
Split complementary#7F4D21, #537F21
Tetradic#7F2153, #7F7C21, #217F4D
Tints, shades & saturation
Channel breakdown
R33
G36
B127
Red33 (12.9%)
Green36 (14.1%)
Blue127 (49.8%)
Hue238.09°
Saturation (HSL)58.75%
Lightness31.37%
Dominant channelBlue
Hex per channelR 21 · G 24 · B 7F
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