#152C5C#152C5C

#152C5C is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.5% C 0.091 H 262.9°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#152C5C
RGBrgb(21, 44, 92)
HSLhsl(221, 63%, 22%)
HSVhsv(221, 77%, 36%)
CMYKcmyk(77.2%, 52.2%, 0%, 63.9%)
CIE-LABlab(18.94, 9.84, -31.43)
CIE-LCHlch(18.94, 32.93, 287.39°)
OKLaboklab(30.46% -0.0112 -0.0902)
OKLCHoklch(30.46% 0.091 262.9)
XYZxyz(3.1410, 2.7332, 10.4852)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152C5C #5C4515
analogous
#15505C #152C5C #21155C
triadic
#152C5C #5C152C #2C5C15
tetradic
#152C5C #5C1550 #5C4515 #155C21
square
#152C5C #5C1550 #5C4515 #155C21
split-complementary
#152C5C #5C2115 #505C15
monochromatic
#060C19 #0A142A #152C5C #20448E #2C5CC0

Accessibility & contrast

On white

13.58
#152C5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#152C5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152C5C
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152C5C#FFFFFF#000000##FFFFFF
##152C5C1.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11315E
Deuteranopia (green-blind)
#002B5B
Tritanopia (blue-blind)
#00373F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #152c5c;
/* rgb */ color: rgb(21, 44, 92);
/* oklch */ color: oklch(30.5% 0.091 262.9);
Tailwind
colors: {
  custom: {
    50: '#5d648a',
    500: '#152c5c',
    950: '#000000',
  },
}
SCSS
$custom: #152c5c;
$custom-light: #5d648a;
$custom-dark: #000000;
JSON
{
  "hex": "#152c5c",
  "rgb": {
    "r": 21,
    "g": 44,
    "b": 92
  },
  "hsl": {
    "h": 220.563,
    "s": 62.832,
    "l": 22.157
  },
  "oklch": {
    "l": 0.30456,
    "c": 0.0909,
    "h": 262.9
  },
  "luminance": 0.02734
}

Semantic roles & 50–950 ramp

primary
#152C5C
secondary
#937639
accent
#B142E6
background
#F5F5F8
surface
#E9EAF0
border
#C5C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #152C5C

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

Preview Lab → · Contrast checker → · Palette generator →

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