#151D4C#151D4C

#151D4C is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.5% C 0.087 H 271.5°. Best body text is #FFFFFF at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#151D4C
RGBrgb(21, 29, 76)
HSLhsl(231, 57%, 19%)
HSVhsv(231, 72%, 30%)
CMYKcmyk(72.4%, 61.8%, 0%, 70.2%)
CIE-LABlab(12.98, 14.31, -30.26)
CIE-LCHlch(12.98, 33.47, 295.31°)
OKLaboklab(25.54% 0.0023 -0.087)
OKLCHoklch(25.54% 0.087 271.5)
XYZxyz(2.0527, 1.5598, 7.0290)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151D4C #4C4415
analogous
#15394C #151D4C #29154C
triadic
#151D4C #4C151D #1D4C15
tetradic
#151D4C #4C1539 #4C4415 #154C29
square
#151D4C #4C1539 #4C4415 #154C29
split-complementary
#151D4C #4C2915 #394C15
monochromatic
#070918 #080B1C #151D4C #222F7C #2F42AC

Accessibility & contrast

On white

16.01
#151D4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#151D4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151D4C
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151D4C#FFFFFF#000000##FFFFFF
##151D4C1.0016.011.3116.01
#FFFFFF16.011.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244E
Deuteranopia (green-blind)
#001F4B
Tritanopia (blue-blind)
#002831
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #151d4c;
/* rgb */ color: rgb(21, 29, 76);
/* oklch */ color: oklch(25.5% 0.087 271.5);
Tailwind
colors: {
  custom: {
    50: '#5a587e',
    500: '#151d4c',
    950: '#000000',
  },
}
SCSS
$custom: #151d4c;
$custom-light: #5a587e;
$custom-dark: #000000;
JSON
{
  "hex": "#151d4c",
  "rgb": {
    "r": 21,
    "g": 29,
    "b": 76
  },
  "hsl": {
    "h": 231.273,
    "s": 56.701,
    "l": 19.02
  },
  "oklch": {
    "l": 0.25537,
    "c": 0.08705,
    "h": 271.5
  },
  "luminance": 0.0156
}

Semantic roles & 50–950 ramp

primary
#151D4C
secondary
#847939
accent
#CA48E0
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #151D4C

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

Preview Lab → · Contrast checker → · Palette generator →

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