#152B72#152B72

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

Color values

HEX#152B72
RGBrgb(21, 43, 114)
HSLhsl(226, 69%, 26%)
HSVhsv(226, 82%, 45%)
CMYKcmyk(81.6%, 62.3%, 0%, 55.3%)
CIE-LABlab(20.45, 19.80, -43.34)
CIE-LCHlch(20.45, 47.65, 294.56°)
OKLaboklab(32.16% -0.0084 -0.1252)
OKLCHoklch(32.16% 0.126 266.1)
XYZxyz(4.2093, 3.1016, 16.2931)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152B72 #725C15
analogous
#155A72 #152B72 #2D1572
triadic
#152B72 #72152B #2B7215
tetradic
#152B72 #72155A #725C15 #15722D
square
#152B72 #72155A #725C15 #15722D
split-complementary
#152B72 #722D15 #5A7215
monochromatic
#050A1A #0B183E #152B72 #1F3EA6 #2A53D8

Accessibility & contrast

On white

12.96
#152B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152B72
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152B72#FFFFFF#000000##FFFFFF
##152B721.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003674
Deuteranopia (green-blind)
#002D71
Tritanopia (blue-blind)
#003D4A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #152b72;
/* rgb */ color: rgb(21, 43, 114);
/* oklch */ color: oklch(32.2% 0.126 266.1);
Tailwind
colors: {
  custom: {
    50: '#63639b',
    500: '#152b72',
    950: '#000000',
  },
}
SCSS
$custom: #152b72;
$custom-light: #63639b;
$custom-dark: #000000;
JSON
{
  "hex": "#152b72",
  "rgb": {
    "r": 21,
    "g": 43,
    "b": 114
  },
  "hsl": {
    "h": 225.806,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.32162,
    "c": 0.12553,
    "h": 266.1
  },
  "luminance": 0.03102
}

Semantic roles & 50–950 ramp

primary
#152B72
secondary
#A88E3B
accent
#C23CEC
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #152B72

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

Preview Lab → · Contrast checker → · Palette generator →

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