#152A56#152A56

#152A56 is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.5% C 0.084 H 263.1°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#152A56
RGBrgb(21, 42, 86)
HSLhsl(221, 61%, 21%)
HSVhsv(221, 76%, 34%)
CMYKcmyk(75.6%, 51.2%, 0%, 66.3%)
CIE-LABlab(17.86, 8.77, -29.17)
CIE-LCHlch(17.86, 30.46, 286.74°)
OKLaboklab(29.49% -0.0102 -0.0836)
OKLCHoklch(29.49% 0.084 263.1)
XYZxyz(2.8163, 2.4870, 9.1339)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A56 #564115
analogous
#154A56 #152A56 #201556
triadic
#152A56 #56152A #2A5615
tetradic
#152A56 #56154A #564115 #155620
square
#152A56 #56154A #564115 #155620
split-complementary
#152A56 #562015 #4A5615
monochromatic
#060C19 #091225 #152A56 #214287 #2D5AB8

Accessibility & contrast

On white

14.02
#152A56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#152A56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152A56
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A56#FFFFFF#000000##FFFFFF
##152A561.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132F58
Deuteranopia (green-blind)
#052955
Tritanopia (blue-blind)
#00343B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #152a56;
/* rgb */ color: rgb(21, 42, 86);
/* oklch */ color: oklch(29.5% 0.084 263.1);
Tailwind
colors: {
  custom: {
    50: '#5c6386',
    500: '#152a56',
    950: '#000000',
  },
}
SCSS
$custom: #152a56;
$custom-light: #5c6386;
$custom-dark: #000000;
JSON
{
  "hex": "#152a56",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 86
  },
  "hsl": {
    "h": 220.615,
    "s": 60.748,
    "l": 20.98
  },
  "oklch": {
    "l": 0.29485,
    "c": 0.08422,
    "h": 263.1
  },
  "luminance": 0.02487
}

Semantic roles & 50–950 ramp

primary
#152A56
secondary
#8E7239
accent
#B044E4
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #152A56

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

Preview Lab → · Contrast checker → · Palette generator →

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