Nerdulator> put something in

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

Protanopia#003081no red cones; affects about 1% of men; ΔE 20.6 from the original
Deuteranopia#00287Cno green cones; the most common form, about 1% of men; ΔE 16.4 from the original
Tritanopia#00354Ano blue cones; rare, and affects men and women equally; ΔE 60.5 from the original
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

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

Lighter +40%#8D77E8
Lighter +30%#694BE1
Lighter +20%#4724D5
Lighter +10%#391CAA
Darker −10%#1B0E52
Darker −20%#0D0627
Darker −30%#000000
Darker −40%#000000
More saturated +25%#1F0390
Less saturated −25%#35276C

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.

Nerdulate something else

Nothing in mind? Surprise me · today’s page

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