#152B5B#152B5B

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

Color values

HEX#152B5B
RGBrgb(21, 43, 91)
HSLhsl(221, 63%, 22%)
HSVhsv(221, 77%, 36%)
CMYKcmyk(76.9%, 52.7%, 0%, 64.3%)
CIE-LABlab(18.55, 10.15, -31.40)
CIE-LCHlch(18.55, 33.00, 287.92°)
OKLaboklab(30.13% -0.0104 -0.0901)
OKLCHoklch(30.13% 0.091 263.4)
XYZxyz(3.0608, 2.6422, 10.2442)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152B5B #5B4515
analogous
#154E5B #152B5B #22155B
triadic
#152B5B #5B152B #2B5B15
tetradic
#152B5B #5B154E #5B4515 #155B22
square
#152B5B #5B154E #5B4515 #155B22
split-complementary
#152B5B #5B2215 #4E5B15
monochromatic
#060C19 #0A1429 #152B5B #20428D #2C5ABE

Accessibility & contrast

On white

13.74
#152B5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#152B5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152B5B
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152B5B#FFFFFF#000000##FFFFFF
##152B5B1.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10315D
Deuteranopia (green-blind)
#002A5A
Tritanopia (blue-blind)
#00363E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #152b5b;
/* rgb */ color: rgb(21, 43, 91);
/* oklch */ color: oklch(30.1% 0.091 263.4);
Tailwind
colors: {
  custom: {
    50: '#5d638a',
    500: '#152b5b',
    950: '#000000',
  },
}
SCSS
$custom: #152b5b;
$custom-light: #5d638a;
$custom-dark: #000000;
JSON
{
  "hex": "#152b5b",
  "rgb": {
    "r": 21,
    "g": 43,
    "b": 91
  },
  "hsl": {
    "h": 221.143,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.30133,
    "c": 0.09072,
    "h": 263.4
  },
  "luminance": 0.02643
}

Semantic roles & 50–950 ramp

primary
#152B5B
secondary
#927639
accent
#B242E6
background
#F5F5F8
surface
#E9EAF0
border
#C5C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #152B5B

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

Preview Lab → · Contrast checker → · Palette generator →

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