#152B7A#152B7A

#152B7A is a dark, vivid blue. Relative luminance 0.033; OKLCH L 32.9% C 0.137 H 266.5°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#152B7A
RGBrgb(21, 43, 122)
HSLhsl(227, 71%, 28%)
HSVhsv(227, 83%, 48%)
CMYKcmyk(82.8%, 64.8%, 0%, 52.2%)
CIE-LABlab(21.18, 23.08, -47.27)
CIE-LCHlch(21.18, 52.60, 296.03°)
OKLaboklab(32.93% -0.0084 -0.1367)
OKLCHoklch(32.93% 0.137 266.5)
XYZxyz(4.6848, 3.2918, 18.7971)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152B7A #7A6415
analogous
#155D7A #152B7A #32157A
triadic
#152B7A #7A152B #2B7A15
tetradic
#152B7A #7A155D #7A6415 #157A32
square
#152B7A #7A155D #7A6415 #157A32
split-complementary
#152B7A #7A3215 #5D7A15
monochromatic
#04091A #0C1946 #152B7A #1E3DAE #2E54DB

Accessibility & contrast

On white

12.66
#152B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#152B7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152B7A
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152B7A#FFFFFF#000000##FFFFFF
##152B7A1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387D
Deuteranopia (green-blind)
#002E79
Tritanopia (blue-blind)
#00404E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #152b7a;
/* rgb */ color: rgb(21, 43, 122);
/* oklch */ color: oklch(32.9% 0.137 266.5);
Tailwind
colors: {
  custom: {
    50: '#6664a1',
    500: '#152b7a',
    950: '#000000',
  },
}
SCSS
$custom: #152b7a;
$custom-light: #6664a1;
$custom-dark: #000000;
JSON
{
  "hex": "#152b7a",
  "rgb": {
    "r": 21,
    "g": 43,
    "b": 122
  },
  "hsl": {
    "h": 226.931,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32931,
    "c": 0.13701,
    "h": 266.5
  },
  "luminance": 0.03292
}

Semantic roles & 50–950 ramp

primary
#152B7A
secondary
#AF963B
accent
#C63AED
background
#F6F5FA
surface
#EBEAF3
border
#C6C6CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #152B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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