#152B71#152B71

#152B71 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.1% C 0.124 H 266.1°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#152B71
RGBrgb(21, 43, 113)
HSLhsl(226, 69%, 26%)
HSVhsv(226, 81%, 44%)
CMYKcmyk(81.4%, 61.9%, 0%, 55.7%)
CIE-LABlab(20.36, 19.39, -42.84)
CIE-LCHlch(20.36, 47.03, 294.35°)
OKLaboklab(32.07% -0.0085 -0.1238)
OKLCHoklch(32.07% 0.124 266.1)
XYZxyz(4.1527, 3.0790, 15.9950)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152B71 #715B15
analogous
#155971 #152B71 #2D1571
triadic
#152B71 #71152B #2B7115
tetradic
#152B71 #711559 #715B15 #15712D
square
#152B71 #711559 #715B15 #15712D
split-complementary
#152B71 #712D15 #597115
monochromatic
#050A1A #0B173D #152B71 #1F3FA5 #2953D7

Accessibility & contrast

On white

13.00
#152B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#152B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152B71
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152B71#FFFFFF#000000##FFFFFF
##152B711.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#002D70
Tritanopia (blue-blind)
#003D49
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #152b71;
/* rgb */ color: rgb(21, 43, 113);
/* oklch */ color: oklch(32.1% 0.124 266.1);
Tailwind
colors: {
  custom: {
    50: '#63639a',
    500: '#152b71',
    950: '#000000',
  },
}
SCSS
$custom: #152b71;
$custom-light: #63639a;
$custom-dark: #000000;
JSON
{
  "hex": "#152b71",
  "rgb": {
    "r": 21,
    "g": 43,
    "b": 113
  },
  "hsl": {
    "h": 225.652,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.32068,
    "c": 0.12407,
    "h": 266.1
  },
  "luminance": 0.03079
}

Semantic roles & 50–950 ramp

primary
#152B71
secondary
#A78D3B
accent
#C23CEB
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #152B71

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

Preview Lab → · Contrast checker → · Palette generator →

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