#152C62#152C62

#152C62 is a dark, moderate blue. Relative luminance 0.028; OKLCH L 31.0% C 0.100 H 264.1°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#152C62
RGBrgb(21, 44, 98)
HSLhsl(222, 65%, 23%)
HSVhsv(222, 79%, 38%)
CMYKcmyk(78.6%, 55.1%, 0%, 61.6%)
CIE-LABlab(19.40, 12.38, -34.64)
CIE-LCHlch(19.40, 36.79, 289.66°)
OKLaboklab(30.95% -0.0104 -0.0997)
OKLCHoklch(30.95% 0.1 264.1)
XYZxyz(3.4138, 2.8423, 11.9216)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152C62 #624B15
analogous
#155262 #152C62 #241562
triadic
#152C62 #62152C #2C6215
tetradic
#152C62 #621552 #624B15 #156224
square
#152C62 #621552 #624B15 #156224
split-complementary
#152C62 #622415 #526215
monochromatic
#050B19 #0A1530 #152C62 #204394 #2B59C7

Accessibility & contrast

On white

13.39
#152C62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#152C62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152C62
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152C62#FFFFFF#000000##FFFFFF
##152C621.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#093364
Deuteranopia (green-blind)
#002C61
Tritanopia (blue-blind)
#003942
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #152c62;
/* rgb */ color: rgb(21, 44, 98);
/* oklch */ color: oklch(31.0% 0.100 264.1);
Tailwind
colors: {
  custom: {
    50: '#5f648f',
    500: '#152c62',
    950: '#000000',
  },
}
SCSS
$custom: #152c62;
$custom-light: #5f648f;
$custom-dark: #000000;
JSON
{
  "hex": "#152c62",
  "rgb": {
    "r": 21,
    "g": 44,
    "b": 98
  },
  "hsl": {
    "h": 222.078,
    "s": 64.706,
    "l": 23.333
  },
  "oklch": {
    "l": 0.30953,
    "c": 0.1002,
    "h": 264.1
  },
  "luminance": 0.02843
}

Semantic roles & 50–950 ramp

primary
#152C62
secondary
#997D3A
accent
#B640E8
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #152C62

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

Preview Lab → · Contrast checker → · Palette generator →

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