#152B64#152B64

#152B64 is a dark, moderate blue. Relative luminance 0.028; OKLCH L 30.9% C 0.105 H 264.9°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#152B64
RGBrgb(21, 43, 100)
HSLhsl(223, 65%, 24%)
HSVhsv(223, 79%, 39%)
CMYKcmyk(79%, 57%, 0%, 60.8%)
CIE-LABlab(19.25, 13.96, -36.20)
CIE-LCHlch(19.25, 38.79, 291.09°)
OKLaboklab(30.89% -0.0093 -0.1042)
OKLCHoklch(30.89% 0.105 264.9)
XYZxyz(3.4726, 2.8069, 12.4129)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152B64 #644E15
analogous
#155264 #152B64 #261564
triadic
#152B64 #64152B #2B6415
tetradic
#152B64 #641552 #644E15 #156426
square
#152B64 #641552 #644E15 #156426
split-complementary
#152B64 #642615 #526415
monochromatic
#050B19 #0A1531 #152B64 #204197 #2A56C9

Accessibility & contrast

On white

13.45
#152B64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#152B64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152B64
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152B64#FFFFFF#000000##FFFFFF
##152B641.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023366
Deuteranopia (green-blind)
#002B63
Tritanopia (blue-blind)
#003943
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #152b64;
/* rgb */ color: rgb(21, 43, 100);
/* oklch */ color: oklch(30.9% 0.105 264.9);
Tailwind
colors: {
  custom: {
    50: '#5f6391',
    500: '#152b64',
    950: '#000000',
  },
}
SCSS
$custom: #152b64;
$custom-light: #5f6391;
$custom-dark: #000000;
JSON
{
  "hex": "#152b64",
  "rgb": {
    "r": 21,
    "g": 43,
    "b": 100
  },
  "hsl": {
    "h": 223.291,
    "s": 65.289,
    "l": 23.725
  },
  "oklch": {
    "l": 0.30892,
    "c": 0.10466,
    "h": 264.9
  },
  "luminance": 0.02807
}

Semantic roles & 50–950 ramp

primary
#152B64
secondary
#9B803A
accent
#B940E8
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050D
muted
#79797D

Preview Lab

Preview with #152B64

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

Preview Lab → · Contrast checker → · Palette generator →

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