#152E7B#152E7B

#152E7B is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.6% C 0.135 H 265.6°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#152E7B
RGBrgb(21, 46, 123)
HSLhsl(225, 71%, 28%)
HSVhsv(225, 83%, 48%)
CMYKcmyk(82.9%, 62.6%, 0%, 51.8%)
CIE-LABlab(22.10, 21.36, -46.39)
CIE-LCHlch(22.10, 51.08, 294.73°)
OKLaboklab(33.65% -0.0103 -0.1341)
OKLCHoklch(33.65% 0.135 265.6)
XYZxyz(4.8601, 3.5429, 19.1628)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152E7B #7B6215
analogous
#15617B #152E7B #2F157B
triadic
#152E7B #7B152E #2E7B15
tetradic
#152E7B #7B1561 #7B6215 #157B2F
square
#152E7B #7B1561 #7B6215 #157B2F
split-complementary
#152E7B #7B2F15 #617B15
monochromatic
#040A1A #0C1A47 #152E7B #1E42AF #2F59DB

Accessibility & contrast

On white

12.29
#152E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#152E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152E7B
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152E7B#FFFFFF#000000##FFFFFF
##152E7B1.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7E
Deuteranopia (green-blind)
#00307A
Tritanopia (blue-blind)
#00424F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #152e7b;
/* rgb */ color: rgb(21, 46, 123);
/* oklch */ color: oklch(33.6% 0.135 265.6);
Tailwind
colors: {
  custom: {
    50: '#6666a2',
    500: '#152e7b',
    950: '#000000',
  },
}
SCSS
$custom: #152e7b;
$custom-light: #6666a2;
$custom-dark: #000000;
JSON
{
  "hex": "#152e7b",
  "rgb": {
    "r": 21,
    "g": 46,
    "b": 123
  },
  "hsl": {
    "h": 225.294,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33645,
    "c": 0.13454,
    "h": 265.6
  },
  "luminance": 0.03543
}

Semantic roles & 50–950 ramp

primary
#152E7B
secondary
#B0943B
accent
#C23AEE
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #152E7B

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#152E7B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva