#152E7A#152E7A

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

Color values

HEX#152E7A
RGBrgb(21, 46, 122)
HSLhsl(225, 71%, 28%)
HSVhsv(225, 83%, 48%)
CMYKcmyk(82.8%, 62.3%, 0%, 52.2%)
CIE-LABlab(22.01, 20.95, -45.90)
CIE-LCHlch(22.01, 50.46, 294.54°)
OKLaboklab(33.55% -0.0103 -0.1327)
OKLCHoklch(33.55% 0.133 265.6)
XYZxyz(4.7979, 3.5180, 18.8348)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152E7A #7A6115
analogous
#15607A #152E7A #2F157A
triadic
#152E7A #7A152E #2E7A15
tetradic
#152E7A #7A1560 #7A6115 #157A2F
square
#152E7A #7A1560 #7A6115 #157A2F
split-complementary
#152E7A #7A2F15 #607A15
monochromatic
#040A1A #0C1A46 #152E7A #1E42AE #2E59DB

Accessibility & contrast

On white

12.33
#152E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#152E7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152E7A
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152E7A#FFFFFF#000000##FFFFFF
##152E7A1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7D
Deuteranopia (green-blind)
#003079
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #152e7a;
/* rgb */ color: rgb(21, 46, 122);
/* oklch */ color: oklch(33.6% 0.133 265.6);
Tailwind
colors: {
  custom: {
    50: '#6566a1',
    500: '#152e7a',
    950: '#000000',
  },
}
SCSS
$custom: #152e7a;
$custom-light: #6566a1;
$custom-dark: #000000;
JSON
{
  "hex": "#152e7a",
  "rgb": {
    "r": 21,
    "g": 46,
    "b": 122
  },
  "hsl": {
    "h": 225.149,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3355,
    "c": 0.13312,
    "h": 265.6
  },
  "luminance": 0.03519
}

Semantic roles & 50–950 ramp

primary
#152E7A
secondary
#AF933B
accent
#C13AED
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #152E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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