#152F80#152F80

#152F80 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.3% C 0.140 H 265.6°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#152F80
RGBrgb(21, 47, 128)
HSLhsl(225, 72%, 29%)
HSVhsv(225, 84%, 50%)
CMYKcmyk(83.6%, 63.3%, 0%, 49.8%)
CIE-LABlab(22.83, 22.70, -48.36)
CIE-LCHlch(22.83, 53.42, 295.14°)
OKLaboklab(34.33% -0.0108 -0.1399)
OKLCHoklch(34.33% 0.14 265.6)
XYZxyz(5.2207, 3.7504, 20.8666)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152F80 #806615
analogous
#156580 #152F80 #311580
triadic
#152F80 #80152F #2F8015
tetradic
#152F80 #801565 #806615 #158031
square
#152F80 #801565 #806615 #158031
split-complementary
#152F80 #803115 #658015
monochromatic
#040A1A #0C1C4B #152F80 #1E42B5 #325CDD

Accessibility & contrast

On white

12.00
#152F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#152F80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152F80
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152F80#FFFFFF#000000##FFFFFF
##152F801.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C83
Deuteranopia (green-blind)
#00327E
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #152f80;
/* rgb */ color: rgb(21, 47, 128);
/* oklch */ color: oklch(34.3% 0.140 265.6);
Tailwind
colors: {
  custom: {
    50: '#6767a6',
    500: '#152f80',
    950: '#000000',
  },
}
SCSS
$custom: #152f80;
$custom-light: #6767a6;
$custom-dark: #000000;
JSON
{
  "hex": "#152f80",
  "rgb": {
    "r": 21,
    "g": 47,
    "b": 128
  },
  "hsl": {
    "h": 225.421,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.34328,
    "c": 0.14033,
    "h": 265.6
  },
  "luminance": 0.03751
}

Semantic roles & 50–950 ramp

primary
#152F80
secondary
#B5983C
accent
#C239EF
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #152F80

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

Preview Lab → · Contrast checker → · Palette generator →

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