#152F81#152F81

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

Color values

HEX#152F81
RGBrgb(21, 47, 129)
HSLhsl(226, 72%, 29%)
HSVhsv(226, 84%, 51%)
CMYKcmyk(83.7%, 63.6%, 0%, 49.4%)
CIE-LABlab(22.92, 23.11, -48.84)
CIE-LCHlch(22.92, 54.03, 295.32°)
OKLaboklab(34.42% -0.0108 -0.1413)
OKLCHoklch(34.42% 0.142 265.6)
XYZxyz(5.2868, 3.7768, 21.2150)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152F81 #816715
analogous
#156581 #152F81 #311581
triadic
#152F81 #81152F #2F8115
tetradic
#152F81 #811565 #816715 #158131
square
#152F81 #811565 #816715 #158131
split-complementary
#152F81 #813115 #658115
monochromatic
#040A1A #0C1C4C #152F81 #1E42B6 #335CDE

Accessibility & contrast

On white

11.96
#152F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#152F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152F81
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152F81#FFFFFF#000000##FFFFFF
##152F811.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C84
Deuteranopia (green-blind)
#00327F
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #152f81;
/* rgb */ color: rgb(21, 47, 129);
/* oklch */ color: oklch(34.4% 0.142 265.6);
Tailwind
colors: {
  custom: {
    50: '#6767a6',
    500: '#152f81',
    950: '#000000',
  },
}
SCSS
$custom: #152f81;
$custom-light: #6767a6;
$custom-dark: #000000;
JSON
{
  "hex": "#152f81",
  "rgb": {
    "r": 21,
    "g": 47,
    "b": 129
  },
  "hsl": {
    "h": 225.556,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.34424,
    "c": 0.14174,
    "h": 265.6
  },
  "luminance": 0.03777
}

Semantic roles & 50–950 ramp

primary
#152F81
secondary
#B6983C
accent
#C339EF
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #152F81

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

Preview Lab → · Contrast checker → · Palette generator →

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