#152A81#152A81

#152A81 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.4% C 0.148 H 266.9°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#152A81
RGBrgb(21, 42, 129)
HSLhsl(228, 72%, 29%)
HSVhsv(228, 84%, 51%)
CMYKcmyk(83.7%, 67.4%, 0%, 49.4%)
CIE-LABlab(21.58, 26.59, -51.04)
CIE-LCHlch(21.58, 57.55, 297.52°)
OKLaboklab(33.43% -0.008 -0.1478)
OKLCHoklch(33.43% 0.148 266.9)
XYZxyz(5.0983, 3.3997, 21.1521)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A81 #816C15
analogous
#156081 #152A81 #361581
triadic
#152A81 #81152A #2A8115
tetradic
#152A81 #811560 #816C15 #158136
square
#152A81 #811560 #816C15 #158136
split-complementary
#152A81 #813615 #608115
monochromatic
#04091A #0C194C #152A81 #1E3BB6 #3354DE

Accessibility & contrast

On white

12.50
#152A81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#152A81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152A81
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A81#FFFFFF#000000##FFFFFF
##152A811.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003984
Deuteranopia (green-blind)
#002F7F
Tritanopia (blue-blind)
#004151
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #152a81;
/* rgb */ color: rgb(21, 42, 129);
/* oklch */ color: oklch(33.4% 0.148 266.9);
Tailwind
colors: {
  custom: {
    50: '#6863a6',
    500: '#152a81',
    950: '#000000',
  },
}
SCSS
$custom: #152a81;
$custom-light: #6863a6;
$custom-dark: #000000;
JSON
{
  "hex": "#152a81",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 129
  },
  "hsl": {
    "h": 228.333,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33433,
    "c": 0.14803,
    "h": 266.9
  },
  "luminance": 0.034
}

Semantic roles & 50–950 ramp

primary
#152A81
secondary
#B69E3C
accent
#CB39EF
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #152A81

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

Preview Lab → · Contrast checker → · Palette generator →

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