#152B76#152B76

#152B76 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.5% C 0.131 H 266.3°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#152B76
RGBrgb(21, 43, 118)
HSLhsl(226, 70%, 27%)
HSVhsv(226, 82%, 46%)
CMYKcmyk(82.2%, 63.6%, 0%, 53.7%)
CIE-LABlab(20.81, 21.45, -45.32)
CIE-LCHlch(20.81, 50.14, 295.33°)
OKLaboklab(32.54% -0.0084 -0.131)
OKLCHoklch(32.54% 0.131 266.3)
XYZxyz(4.4420, 3.1947, 17.5186)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152B76 #766015
analogous
#155B76 #152B76 #301576
triadic
#152B76 #76152B #2B7615
tetradic
#152B76 #76155B #766015 #157630
square
#152B76 #76155B #766015 #157630
split-complementary
#152B76 #763015 #5B7615
monochromatic
#05091A #0C1842 #152B76 #1E3EAA #2C53D9

Accessibility & contrast

On white

12.81
#152B76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#152B76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152B76
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152B76#FFFFFF#000000##FFFFFF
##152B761.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003778
Deuteranopia (green-blind)
#002E75
Tritanopia (blue-blind)
#003E4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #152b76;
/* rgb */ color: rgb(21, 43, 118);
/* oklch */ color: oklch(32.5% 0.131 266.3);
Tailwind
colors: {
  custom: {
    50: '#64649e',
    500: '#152b76',
    950: '#000000',
  },
}
SCSS
$custom: #152b76;
$custom-light: #64649e;
$custom-dark: #000000;
JSON
{
  "hex": "#152b76",
  "rgb": {
    "r": 21,
    "g": 43,
    "b": 118
  },
  "hsl": {
    "h": 226.392,
    "s": 69.784,
    "l": 27.255
  },
  "oklch": {
    "l": 0.32543,
    "c": 0.13131,
    "h": 266.3
  },
  "luminance": 0.03195
}

Semantic roles & 50–950 ramp

primary
#152B76
secondary
#AC923B
accent
#C43BED
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #152B76

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

Preview Lab → · Contrast checker → · Palette generator →

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