#152A5B#152A5B

#152A5B is a dark, moderate blue. Relative luminance 0.026; OKLCH L 29.9% C 0.092 H 264.1°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#152A5B
RGBrgb(21, 42, 91)
HSLhsl(222, 63%, 22%)
HSVhsv(222, 77%, 36%)
CMYKcmyk(76.9%, 53.8%, 0%, 64.3%)
CIE-LABlab(18.23, 10.89, -31.90)
CIE-LCHlch(18.23, 33.71, 288.85°)
OKLaboklab(29.89% -0.0094 -0.0916)
OKLCHoklch(29.89% 0.092 264.1)
XYZxyz(3.0249, 2.5704, 10.2322)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A5B #5B4615
analogous
#154D5B #152A5B #23155B
triadic
#152A5B #5B152A #2A5B15
tetradic
#152A5B #5B154D #5B4615 #155B23
square
#152A5B #5B154D #5B4615 #155B23
split-complementary
#152A5B #5B2315 #4D5B15
monochromatic
#060B19 #0A1329 #152A5B #20418D #2C58BE

Accessibility & contrast

On white

13.87
#152A5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#152A5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152A5B
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A5B#FFFFFF#000000##FFFFFF
##152A5B1.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D305D
Deuteranopia (green-blind)
#00295A
Tritanopia (blue-blind)
#00363E
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #152a5b;
/* rgb */ color: rgb(21, 42, 91);
/* oklch */ color: oklch(29.9% 0.092 264.1);
Tailwind
colors: {
  custom: {
    50: '#5d638a',
    500: '#152a5b',
    950: '#000000',
  },
}
SCSS
$custom: #152a5b;
$custom-light: #5d638a;
$custom-dark: #000000;
JSON
{
  "hex": "#152a5b",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 91
  },
  "hsl": {
    "h": 222,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.29892,
    "c": 0.09212,
    "h": 264.1
  },
  "luminance": 0.02571
}

Semantic roles & 50–950 ramp

primary
#152A5B
secondary
#927839
accent
#B542E6
background
#F5F5F8
surface
#E9EAF0
border
#C5C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #152A5B

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

Preview Lab → · Contrast checker → · Palette generator →

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