#152E62#152E62

#152E62 is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.4% C 0.097 H 262.8°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#152E62
RGBrgb(21, 46, 98)
HSLhsl(221, 65%, 23%)
HSVhsv(221, 79%, 38%)
CMYKcmyk(78.6%, 53.1%, 0%, 61.6%)
CIE-LABlab(20.02, 10.92, -33.64)
CIE-LCHlch(20.02, 35.37, 287.98°)
OKLaboklab(31.43% -0.0122 -0.0967)
OKLCHoklch(31.43% 0.097 262.8)
XYZxyz(3.4901, 2.9949, 11.9470)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152E62 #624915
analogous
#155462 #152E62 #221562
triadic
#152E62 #62152E #2E6215
tetradic
#152E62 #621554 #624915 #156222
square
#152E62 #621554 #624915 #156222
split-complementary
#152E62 #622215 #546215
monochromatic
#050C19 #0A1630 #152E62 #204694 #2B5DC7

Accessibility & contrast

On white

13.13
#152E62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#152E62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152E62
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152E62#FFFFFF#000000##FFFFFF
##152E621.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F3464
Deuteranopia (green-blind)
#002D61
Tritanopia (blue-blind)
#003A43
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #152e62;
/* rgb */ color: rgb(21, 46, 98);
/* oklch */ color: oklch(31.4% 0.097 262.8);
Tailwind
colors: {
  custom: {
    50: '#5f668f',
    500: '#152e62',
    950: '#000000',
  },
}
SCSS
$custom: #152e62;
$custom-light: #5f668f;
$custom-dark: #000000;
JSON
{
  "hex": "#152e62",
  "rgb": {
    "r": 21,
    "g": 46,
    "b": 98
  },
  "hsl": {
    "h": 220.519,
    "s": 64.706,
    "l": 23.333
  },
  "oklch": {
    "l": 0.31427,
    "c": 0.09743,
    "h": 262.8
  },
  "luminance": 0.02995
}

Semantic roles & 50–950 ramp

primary
#152E62
secondary
#997A3A
accent
#B140E8
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05050C
muted
#797A7D

Preview Lab

Preview with #152E62

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

Preview Lab → · Contrast checker → · Palette generator →

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