#152D62#152D62

#152D62 is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.2% C 0.099 H 263.4°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#152D62
RGBrgb(21, 45, 98)
HSLhsl(221, 65%, 23%)
HSVhsv(221, 79%, 38%)
CMYKcmyk(78.6%, 54.1%, 0%, 61.6%)
CIE-LABlab(19.71, 11.65, -34.14)
CIE-LCHlch(19.71, 36.07, 288.84°)
OKLaboklab(31.19% -0.0113 -0.0982)
OKLCHoklch(31.19% 0.099 263.4)
XYZxyz(3.4515, 2.9177, 11.9342)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152D62 #624A15
analogous
#155362 #152D62 #231562
triadic
#152D62 #62152D #2D6215
tetradic
#152D62 #621553 #624A15 #156223
square
#152D62 #621553 #624A15 #156223
split-complementary
#152D62 #622315 #536215
monochromatic
#050C19 #0A1630 #152D62 #204494 #2B5BC7

Accessibility & contrast

On white

13.26
#152D62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#152D62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152D62
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152D62#FFFFFF#000000##FFFFFF
##152D621.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3364
Deuteranopia (green-blind)
#002C61
Tritanopia (blue-blind)
#003A42
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #152d62;
/* rgb */ color: rgb(21, 45, 98);
/* oklch */ color: oklch(31.2% 0.099 263.4);
Tailwind
colors: {
  custom: {
    50: '#5f658f',
    500: '#152d62',
    950: '#000000',
  },
}
SCSS
$custom: #152d62;
$custom-light: #5f658f;
$custom-dark: #000000;
JSON
{
  "hex": "#152d62",
  "rgb": {
    "r": 21,
    "g": 45,
    "b": 98
  },
  "hsl": {
    "h": 221.299,
    "s": 64.706,
    "l": 23.333
  },
  "oklch": {
    "l": 0.31189,
    "c": 0.09882,
    "h": 263.4
  },
  "luminance": 0.02918
}

Semantic roles & 50–950 ramp

primary
#152D62
secondary
#997B3A
accent
#B340E8
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05050C
muted
#797A7D

Preview Lab

Preview with #152D62

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

Preview Lab → · Contrast checker → · Palette generator →

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