#152A5D#152A5D

#152A5D is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.1% C 0.095 H 264.5°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#152A5D
RGBrgb(21, 42, 93)
HSLhsl(223, 63%, 22%)
HSVhsv(223, 77%, 36%)
CMYKcmyk(77.4%, 54.8%, 0%, 63.5%)
CIE-LABlab(18.39, 11.74, -32.98)
CIE-LCHlch(18.39, 35.01, 289.59°)
OKLaboklab(30.06% -0.0091 -0.0948)
OKLCHoklch(30.06% 0.095 264.5)
XYZxyz(3.1123, 2.6053, 10.6927)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A5D #5D4815
analogous
#154E5D #152A5D #24155D
triadic
#152A5D #5D152A #2A5D15
tetradic
#152A5D #5D154E #5D4815 #155D24
square
#152A5D #5D154E #5D4815 #155D24
split-complementary
#152A5D #5D2415 #4E5D15
monochromatic
#060B19 #0A132B #152A5D #20418F #2C57C1

Accessibility & contrast

On white

13.80
#152A5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#152A5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152A5D
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A5D#FFFFFF#000000##FFFFFF
##152A5D1.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A305F
Deuteranopia (green-blind)
#002A5C
Tritanopia (blue-blind)
#00363F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #152a5d;
/* rgb */ color: rgb(21, 42, 93);
/* oklch */ color: oklch(30.1% 0.095 264.5);
Tailwind
colors: {
  custom: {
    50: '#5e638b',
    500: '#152a5d',
    950: '#000000',
  },
}
SCSS
$custom: #152a5d;
$custom-light: #5e638b;
$custom-dark: #000000;
JSON
{
  "hex": "#152a5d",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 93
  },
  "hsl": {
    "h": 222.5,
    "s": 63.158,
    "l": 22.353
  },
  "oklch": {
    "l": 0.30059,
    "c": 0.09525,
    "h": 264.5
  },
  "luminance": 0.02606
}

Semantic roles & 50–950 ramp

primary
#152A5D
secondary
#947A39
accent
#B642E6
background
#F5F5F8
surface
#E9EAF0
border
#C5C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #152A5D

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

Preview Lab → · Contrast checker → · Palette generator →

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