#151D8D#151D8D

#151D8D is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.6% C 0.178 H 268.6°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#151D8D
RGBrgb(21, 29, 141)
HSLhsl(236, 74%, 32%)
HSVhsv(236, 85%, 55%)
CMYKcmyk(85.1%, 79.4%, 0%, 44.7%)
CIE-LABlab(19.89, 39.36, -61.36)
CIE-LCHlch(19.89, 72.90, 302.67°)
OKLaboklab(32.6% -0.0043 -0.1778)
OKLCHoklch(32.6% 0.178 268.6)
XYZxyz(5.5547, 2.9606, 25.4728)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151D8D #8D8515
analogous
#15598D #151D8D #49158D
triadic
#151D8D #8D151D #1D8D15
tetradic
#151D8D #8D1559 #8D8515 #158D49
square
#151D8D #8D1559 #8D8515 #158D49
split-complementary
#151D8D #8D4915 #598D15
monochromatic
#050722 #0D1258 #151D8D #1D28C2 #3B46E2

Accessibility & contrast

On white

13.19
#151D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#151D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151D8D
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151D8D#FFFFFF#000000##FFFFFF
##151D8D1.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003690
Deuteranopia (green-blind)
#002A8B
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #151d8d;
/* rgb */ color: rgb(21, 29, 141);
/* oklch */ color: oklch(32.6% 0.178 268.6);
Tailwind
colors: {
  custom: {
    50: '#6c5bb0',
    500: '#151d8d',
    950: '#000000',
  },
}
SCSS
$custom: #151d8d;
$custom-light: #6c5bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#151d8d",
  "rgb": {
    "r": 21,
    "g": 29,
    "b": 141
  },
  "hsl": {
    "h": 236,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32603,
    "c": 0.17785,
    "h": 268.6
  },
  "luminance": 0.02961
}

Semantic roles & 50–950 ramp

primary
#151D8D
secondary
#C1B83D
accent
#E437F1
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#080411
muted
#7B7980

Preview Lab

Preview with #151D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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