#151D5D#151D5D

#151D5D is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.2% C 0.113 H 271.1°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#151D5D
RGBrgb(21, 29, 93)
HSLhsl(233, 63%, 22%)
HSVhsv(233, 77%, 36%)
CMYKcmyk(77.4%, 68.8%, 0%, 63.5%)
CIE-LABlab(14.56, 21.29, -39.21)
CIE-LCHlch(14.56, 44.62, 298.50°)
OKLaboklab(27.2% 0.0021 -0.1133)
OKLCHoklch(27.2% 0.113 271.1)
XYZxyz(2.7237, 1.8282, 10.5631)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151D5D #5D5515
analogous
#15415D #151D5D #31155D
triadic
#151D5D #5D151D #1D5D15
tetradic
#151D5D #5D1541 #5D5515 #155D31
square
#151D5D #5D1541 #5D5515 #155D31
split-complementary
#151D5D #5D3115 #415D15
monochromatic
#060819 #0A0D2B #151D5D #202D8F #2C3CC1

Accessibility & contrast

On white

15.38
#151D5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#151D5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151D5D
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151D5D#FFFFFF#000000##FFFFFF
##151D5D1.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285F
Deuteranopia (green-blind)
#00215C
Tritanopia (blue-blind)
#002E3A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #151d5d;
/* rgb */ color: rgb(21, 29, 93);
/* oklch */ color: oklch(27.2% 0.113 271.1);
Tailwind
colors: {
  custom: {
    50: '#5f598c',
    500: '#151d5d',
    950: '#000000',
  },
}
SCSS
$custom: #151d5d;
$custom-light: #5f598c;
$custom-dark: #000000;
JSON
{
  "hex": "#151d5d",
  "rgb": {
    "r": 21,
    "g": 29,
    "b": 93
  },
  "hsl": {
    "h": 233.333,
    "s": 63.158,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27195,
    "c": 0.11332,
    "h": 271.1
  },
  "luminance": 0.01828
}

Semantic roles & 50–950 ramp

primary
#151D5D
secondary
#948A39
accent
#D442E6
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #151D5D

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

Preview Lab → · Contrast checker → · Palette generator →

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