#152A57#152A57

#152A57 is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.6% C 0.086 H 263.3°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#152A57
RGBrgb(21, 42, 87)
HSLhsl(221, 61%, 21%)
HSVhsv(221, 76%, 34%)
CMYKcmyk(75.9%, 51.7%, 0%, 65.9%)
CIE-LABlab(17.93, 9.20, -29.72)
CIE-LCHlch(17.93, 31.11, 287.19°)
OKLaboklab(29.57% -0.01 -0.0852)
OKLCHoklch(29.57% 0.086 263.3)
XYZxyz(2.8569, 2.5032, 9.3476)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A57 #574215
analogous
#154B57 #152A57 #211557
triadic
#152A57 #57152A #2A5715
tetradic
#152A57 #57154B #574215 #155721
square
#152A57 #57154B #574215 #155721
split-complementary
#152A57 #572115 #4B5715
monochromatic
#060C19 #091226 #152A57 #214288 #2D5ABA

Accessibility & contrast

On white

13.99
#152A57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152A57
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A57#FFFFFF#000000##FFFFFF
##152A571.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122F59
Deuteranopia (green-blind)
#032956
Tritanopia (blue-blind)
#00353C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #152a57;
/* rgb */ color: rgb(21, 42, 87);
/* oklch */ color: oklch(29.6% 0.086 263.3);
Tailwind
colors: {
  custom: {
    50: '#5c6387',
    500: '#152a57',
    950: '#000000',
  },
}
SCSS
$custom: #152a57;
$custom-light: #5c6387;
$custom-dark: #000000;
JSON
{
  "hex": "#152a57",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 87
  },
  "hsl": {
    "h": 220.909,
    "s": 61.111,
    "l": 21.176
  },
  "oklch": {
    "l": 0.29565,
    "c": 0.08581,
    "h": 263.3
  },
  "luminance": 0.02503
}

Semantic roles & 50–950 ramp

primary
#152A57
secondary
#8F7339
accent
#B144E4
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #152A57

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

Preview Lab → · Contrast checker → · Palette generator →

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