Recognised as Colour
#2A157E
- #2A157E
- Blue
- Dark
- Nearest: Midnight blue
#2A157E is a blue with RGB values 42, 21, 126 and HSL 252°, 71%, 29%. It is a dark colour, so white text on it reaches 13.9:1 contrast (AAA for normal text). The nearest named colour is Midnight blue.
Colour values
#2A157E#2A157E
HEX#2A157E
RGBrgb(42, 21, 126)
RGB (0–1)0.1647, 0.0824, 0.4941
RGB percentages16.5%, 8.2%, 49.4%
HSLhsl(252, 71.4%, 28.8%)
HSV / HSBhsv(252, 83.3%, 49.4%)
CMYK66.7%, 83.3%, 0%, 50.6%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer2,758,014
CSS custom property--colour: #2A157E;
Brightness & contrast
Relative luminance0.02535WCAG 2.x, 0 is black and 1 is white
Perceived brightness51 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 13.94:1
Contrast with white13.94:1WCAG normal text: AAA
Contrast with black1.51:1WCAG normal text: Fail
Greyscale equivalent#212121
Inverted#D5EA81
Colour vision & accessibility
Distinguishable without hueShifts in lightness toonever rely on hue alone to carry meaning
Contrast with white, large text13.94:1WCAG large text: AAA
Contrast with black, large text1.51:1WCAG large text: Fail
Named colours
Hue familyblue
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#697E15
Analogous#15347E, #5F157E
Triadic#7E2A15, #157E2A
Split complementary#7E5F15, #357E15
Tetradic#7E1534, #697E15, #157E5F
Tints, shades & saturation
Channel breakdown
R42
G21
B126
Red42 (16.5%)
Green21 (8.2%)
Blue126 (49.4%)
Hue252°
Saturation (HSL)71.43%
Lightness28.82%
Dominant channelBlue
Hex per channelR 2A · G 15 · B 7E
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