#152D80#152D80

#152D80 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.9% C 0.143 H 266.1°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#152D80
RGBrgb(21, 45, 128)
HSLhsl(227, 72%, 29%)
HSVhsv(227, 84%, 50%)
CMYKcmyk(83.6%, 64.8%, 0%, 49.8%)
CIE-LABlab(22.28, 24.11, -49.26)
CIE-LCHlch(22.28, 54.84, 296.08°)
OKLaboklab(33.92% -0.0096 -0.1426)
OKLCHoklch(33.92% 0.143 266.1)
XYZxyz(5.1426, 3.5941, 20.8406)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152D80 #806815
analogous
#156380 #152D80 #331580
triadic
#152D80 #80152D #2D8015
tetradic
#152D80 #801563 #806815 #158033
square
#152D80 #801563 #806815 #158033
split-complementary
#152D80 #803315 #638015
monochromatic
#04091A #0C1B4B #152D80 #1E3FB5 #3258DD

Accessibility & contrast

On white

12.22
#152D80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#152D80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152D80
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152D80#FFFFFF#000000##FFFFFF
##152D801.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A83
Deuteranopia (green-blind)
#00307E
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #152d80;
/* rgb */ color: rgb(21, 45, 128);
/* oklch */ color: oklch(33.9% 0.143 266.1);
Tailwind
colors: {
  custom: {
    50: '#6765a6',
    500: '#152d80',
    950: '#000000',
  },
}
SCSS
$custom: #152d80;
$custom-light: #6765a6;
$custom-dark: #000000;
JSON
{
  "hex": "#152d80",
  "rgb": {
    "r": 21,
    "g": 45,
    "b": 128
  },
  "hsl": {
    "h": 226.542,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33922,
    "c": 0.14289,
    "h": 266.1
  },
  "luminance": 0.03595
}

Semantic roles & 50–950 ramp

primary
#152D80
secondary
#B59A3C
accent
#C639EF
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #152D80

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

Preview Lab → · Contrast checker → · Palette generator →

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