#152A7D#152A7D

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

Color values

HEX#152A7D
RGBrgb(21, 42, 125)
HSLhsl(228, 71%, 29%)
HSVhsv(228, 83%, 49%)
CMYKcmyk(83.2%, 66.4%, 0%, 51%)
CIE-LABlab(21.19, 24.99, -49.15)
CIE-LCHlch(21.19, 55.14, 296.95°)
OKLaboklab(33.03% -0.0078 -0.1423)
OKLCHoklch(33.03% 0.142 266.8)
XYZxyz(4.8376, 3.2955, 19.7792)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A7D #7D6815
analogous
#155E7D #152A7D #34157D
triadic
#152A7D #7D152A #2A7D15
tetradic
#152A7D #7D155E #7D6815 #157D34
square
#152A7D #7D155E #7D6815 #157D34
split-complementary
#152A7D #7D3415 #5E7D15
monochromatic
#04091A #0C1849 #152A7D #1E3CB1 #3053DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##152A7D#FFFFFF#000000##FFFFFF
##152A7D1.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)
#003880
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #152a7d;
/* rgb */ color: rgb(21, 42, 125);
/* oklch */ color: oklch(33.0% 0.142 266.8);
Tailwind
colors: {
  custom: {
    50: '#6663a3',
    500: '#152a7d',
    950: '#000000',
  },
}
SCSS
$custom: #152a7d;
$custom-light: #6663a3;
$custom-dark: #000000;
JSON
{
  "hex": "#152a7d",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 125
  },
  "hsl": {
    "h": 227.885,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33029,
    "c": 0.14249,
    "h": 266.8
  },
  "luminance": 0.03296
}

Semantic roles & 50–950 ramp

primary
#152A7D
secondary
#B29A3C
accent
#CA3AEE
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #152A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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