#152F5D#152F5D

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

Color values

HEX#152F5D
RGBrgb(21, 47, 93)
HSLhsl(218, 63%, 22%)
HSVhsv(218, 77%, 36%)
CMYKcmyk(77.4%, 49.5%, 0%, 63.5%)
CIE-LABlab(19.97, 8.07, -30.43)
CIE-LCHlch(19.97, 31.48, 284.86°)
OKLaboklab(31.27% -0.014 -0.0872)
OKLCHoklch(31.27% 0.088 260.8)
XYZxyz(3.3008, 2.9824, 10.7555)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152F5D #5D4315
analogous
#15535D #152F5D #1F155D
triadic
#152F5D #5D152F #2F5D15
tetradic
#152F5D #5D1553 #5D4315 #155D1F
square
#152F5D #5D1553 #5D4315 #155D1F
split-complementary
#152F5D #5D1F15 #535D15
monochromatic
#060D19 #0A162B #152F5D #20488F #2C61C1

Accessibility & contrast

On white

13.15
#152F5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152F5D
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152F5D#FFFFFF#000000##FFFFFF
##152F5D1.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17345F
Deuteranopia (green-blind)
#072D5C
Tritanopia (blue-blind)
#003A41
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #152f5d;
/* rgb */ color: rgb(21, 47, 93);
/* oklch */ color: oklch(31.3% 0.088 260.8);
Tailwind
colors: {
  custom: {
    50: '#5d678b',
    500: '#152f5d',
    950: '#000000',
  },
}
SCSS
$custom: #152f5d;
$custom-light: #5d678b;
$custom-dark: #000000;
JSON
{
  "hex": "#152f5d",
  "rgb": {
    "r": 21,
    "g": 47,
    "b": 93
  },
  "hsl": {
    "h": 218.333,
    "s": 63.158,
    "l": 22.353
  },
  "oklch": {
    "l": 0.31271,
    "c": 0.08832,
    "h": 260.8
  },
  "luminance": 0.02983
}

Semantic roles & 50–950 ramp

primary
#152F5D
secondary
#947439
accent
#AB42E6
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #152F5D

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

Preview Lab → · Contrast checker → · Palette generator →

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