#152F5E#152F5E

#152F5E is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.3% C 0.090 H 261.1°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#152F5E
RGBrgb(21, 47, 94)
HSLhsl(219, 63%, 23%)
HSVhsv(219, 78%, 37%)
CMYKcmyk(77.7%, 50%, 0%, 63.1%)
CIE-LABlab(20.05, 8.49, -30.97)
CIE-LCHlch(20.05, 32.12, 285.33°)
OKLaboklab(31.35% -0.0139 -0.0888)
OKLCHoklch(31.35% 0.09 261.1)
XYZxyz(3.3454, 3.0003, 10.9903)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152F5E #5E4415
analogous
#15535E #152F5E #1F155E
triadic
#152F5E #5E152F #2F5E15
tetradic
#152F5E #5E1553 #5E4415 #155E1F
square
#152F5E #5E1553 #5E4415 #155E1F
split-complementary
#152F5E #5E1F15 #535E15
monochromatic
#060D19 #0A162C #152F5E #204890 #2B61C2

Accessibility & contrast

On white

13.12
#152F5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152F5E
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152F5E#FFFFFF#000000##FFFFFF
##152F5E1.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163460
Deuteranopia (green-blind)
#062D5D
Tritanopia (blue-blind)
#003A42
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #152f5e;
/* rgb */ color: rgb(21, 47, 94);
/* oklch */ color: oklch(31.3% 0.090 261.1);
Tailwind
colors: {
  custom: {
    50: '#5e678c',
    500: '#152f5e',
    950: '#000000',
  },
}
SCSS
$custom: #152f5e;
$custom-light: #5e678c;
$custom-dark: #000000;
JSON
{
  "hex": "#152f5e",
  "rgb": {
    "r": 21,
    "g": 47,
    "b": 94
  },
  "hsl": {
    "h": 218.63,
    "s": 63.478,
    "l": 22.549
  },
  "oklch": {
    "l": 0.31349,
    "c": 0.08988,
    "h": 261.1
  },
  "luminance": 0.03001
}

Semantic roles & 50–950 ramp

primary
#152F5E
secondary
#957539
accent
#AC41E7
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #152F5E

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

Preview Lab → · Contrast checker → · Palette generator →

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