#152D5D#152D5D

#152D5D is a dark, moderate blue. Relative luminance 0.028; OKLCH L 30.8% C 0.091 H 262.4°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#152D5D
RGBrgb(21, 45, 93)
HSLhsl(220, 63%, 22%)
HSVhsv(220, 77%, 36%)
CMYKcmyk(77.4%, 51.6%, 0%, 63.5%)
CIE-LABlab(19.33, 9.53, -31.46)
CIE-LCHlch(19.33, 32.87, 286.85°)
OKLaboklab(30.78% -0.012 -0.0903)
OKLCHoklch(30.78% 0.091 262.4)
XYZxyz(3.2227, 2.8262, 10.7295)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152D5D #5D4515
analogous
#15515D #152D5D #21155D
triadic
#152D5D #5D152D #2D5D15
tetradic
#152D5D #5D1551 #5D4515 #155D21
square
#152D5D #5D1551 #5D4515 #155D21
split-complementary
#152D5D #5D2115 #515D15
monochromatic
#060C19 #0A152B #152D5D #20458F #2C5DC1

Accessibility & contrast

On white

13.42
#152D5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#152D5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152D5D
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152D5D#FFFFFF#000000##FFFFFF
##152D5D1.0013.421.5713.42
#FFFFFF13.421.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13325F
Deuteranopia (green-blind)
#012C5C
Tritanopia (blue-blind)
#003840
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #152d5d;
/* rgb */ color: rgb(21, 45, 93);
/* oklch */ color: oklch(30.8% 0.091 262.4);
Tailwind
colors: {
  custom: {
    50: '#5d658b',
    500: '#152d5d',
    950: '#000000',
  },
}
SCSS
$custom: #152d5d;
$custom-light: #5d658b;
$custom-dark: #000000;
JSON
{
  "hex": "#152d5d",
  "rgb": {
    "r": 21,
    "g": 45,
    "b": 93
  },
  "hsl": {
    "h": 220,
    "s": 63.158,
    "l": 22.353
  },
  "oklch": {
    "l": 0.3078,
    "c": 0.09107,
    "h": 262.4
  },
  "luminance": 0.02827
}

Semantic roles & 50–950 ramp

primary
#152D5D
secondary
#947639
accent
#AF42E6
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05050C
muted
#797A7D

Preview Lab

Preview with #152D5D

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

Preview Lab → · Contrast checker → · Palette generator →

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