#152C5B#152C5B

#152C5B is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.4% C 0.089 H 262.7°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#152C5B
RGBrgb(21, 44, 91)
HSLhsl(220, 63%, 22%)
HSVhsv(220, 77%, 36%)
CMYKcmyk(76.9%, 51.6%, 0%, 64.3%)
CIE-LABlab(18.87, 9.42, -30.88)
CIE-LCHlch(18.87, 32.29, 286.96°)
OKLaboklab(30.38% -0.0114 -0.0886)
OKLCHoklch(30.38% 0.089 262.7)
XYZxyz(3.0976, 2.7158, 10.2565)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152C5B #5B4415
analogous
#154F5B #152C5B #21155B
triadic
#152C5B #5B152C #2C5B15
tetradic
#152C5B #5B154F #5B4415 #155B21
square
#152C5B #5B154F #5B4415 #155B21
split-complementary
#152C5B #5B2115 #4F5B15
monochromatic
#060C19 #0A1429 #152C5B #20448D #2C5CBE

Accessibility & contrast

On white

13.61
#152C5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#152C5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152C5B
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152C5B#FFFFFF#000000##FFFFFF
##152C5B1.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12315D
Deuteranopia (green-blind)
#022B5A
Tritanopia (blue-blind)
#00373F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #152c5b;
/* rgb */ color: rgb(21, 44, 91);
/* oklch */ color: oklch(30.4% 0.089 262.7);
Tailwind
colors: {
  custom: {
    50: '#5d648a',
    500: '#152c5b',
    950: '#000000',
  },
}
SCSS
$custom: #152c5b;
$custom-light: #5d648a;
$custom-dark: #000000;
JSON
{
  "hex": "#152c5b",
  "rgb": {
    "r": 21,
    "g": 44,
    "b": 91
  },
  "hsl": {
    "h": 220.286,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.30376,
    "c": 0.08933,
    "h": 262.7
  },
  "luminance": 0.02716
}

Semantic roles & 50–950 ramp

primary
#152C5B
secondary
#927539
accent
#B042E6
background
#F5F5F8
surface
#E9EAF0
border
#C5C6CB
text
#05050B
muted
#79797C

Preview Lab

Preview with #152C5B

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

Preview Lab → · Contrast checker → · Palette generator →

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