#152F62#152F62

#152F62 is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.7% C 0.096 H 262.1°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#152F62
RGBrgb(21, 47, 98)
HSLhsl(220, 65%, 23%)
HSVhsv(220, 79%, 38%)
CMYKcmyk(78.6%, 52%, 0%, 61.6%)
CIE-LABlab(20.34, 10.19, -33.13)
CIE-LCHlch(20.34, 34.66, 287.09°)
OKLaboklab(31.67% -0.0132 -0.0951)
OKLCHoklch(31.67% 0.096 262.1)
XYZxyz(3.5296, 3.0739, 11.9602)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152F62 #624815
analogous
#155562 #152F62 #211562
triadic
#152F62 #62152F #2F6215
tetradic
#152F62 #621555 #624815 #156221
square
#152F62 #621555 #624815 #156221
split-complementary
#152F62 #622115 #556215
monochromatic
#050C19 #0A1730 #152F62 #204794 #2B5FC7

Accessibility & contrast

On white

13.00
#152F62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#152F62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152F62
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152F62#FFFFFF#000000##FFFFFF
##152F621.0013.001.6113.00
#FFFFFF13.001.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123564
Deuteranopia (green-blind)
#002E61
Tritanopia (blue-blind)
#003B43
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #152f62;
/* rgb */ color: rgb(21, 47, 98);
/* oklch */ color: oklch(31.7% 0.096 262.1);
Tailwind
colors: {
  custom: {
    50: '#5f678f',
    500: '#152f62',
    950: '#000000',
  },
}
SCSS
$custom: #152f62;
$custom-light: #5f678f;
$custom-dark: #000000;
JSON
{
  "hex": "#152f62",
  "rgb": {
    "r": 21,
    "g": 47,
    "b": 98
  },
  "hsl": {
    "h": 219.74,
    "s": 64.706,
    "l": 23.333
  },
  "oklch": {
    "l": 0.31667,
    "c": 0.09606,
    "h": 262.1
  },
  "luminance": 0.03074
}

Semantic roles & 50–950 ramp

primary
#152F62
secondary
#99793A
accent
#AF40E8
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #152F62

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

Preview Lab → · Contrast checker → · Palette generator →

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