#152F5A#152F5A

#152F5A is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.0% C 0.084 H 259.9°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#152F5A
RGBrgb(21, 47, 90)
HSLhsl(217, 62%, 22%)
HSVhsv(217, 77%, 35%)
CMYKcmyk(76.7%, 47.8%, 0%, 64.7%)
CIE-LABlab(19.76, 6.81, -28.78)
CIE-LCHlch(19.76, 29.58, 283.30°)
OKLaboklab(31.04% -0.0146 -0.0824)
OKLCHoklch(31.04% 0.084 259.9)
XYZxyz(3.1706, 2.9303, 10.0694)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152F5A #5A4015
analogous
#15525A #152F5A #1E155A
triadic
#152F5A #5A152F #2F5A15
tetradic
#152F5A #5A1552 #5A4015 #155A1E
square
#152F5A #5A1552 #5A4015 #155A1E
split-complementary
#152F5A #5A1E15 #525A15
monochromatic
#060D19 #091528 #152F5A #21498C #2C63BD

Accessibility & contrast

On white

13.24
#152F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#152F5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152F5A
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152F5A#FFFFFF#000000##FFFFFF
##152F5A1.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A335C
Deuteranopia (green-blind)
#0D2D59
Tritanopia (blue-blind)
#003940
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #152f5a;
/* rgb */ color: rgb(21, 47, 90);
/* oklch */ color: oklch(31.0% 0.084 259.9);
Tailwind
colors: {
  custom: {
    50: '#5d6789',
    500: '#152f5a',
    950: '#000000',
  },
}
SCSS
$custom: #152f5a;
$custom-light: #5d6789;
$custom-dark: #000000;
JSON
{
  "hex": "#152f5a",
  "rgb": {
    "r": 21,
    "g": 47,
    "b": 90
  },
  "hsl": {
    "h": 217.391,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.31041,
    "c": 0.08365,
    "h": 259.9
  },
  "luminance": 0.02931
}

Semantic roles & 50–950 ramp

primary
#152F5A
secondary
#927039
accent
#A843E5
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05060B
muted
#797A7C

Preview Lab

Preview with #152F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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