#151D81#151D81

#151D81 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.2% C 0.163 H 269.2°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#151D81
RGBrgb(21, 29, 129)
HSLhsl(236, 72%, 29%)
HSVhsv(236, 84%, 51%)
CMYKcmyk(83.7%, 77.5%, 0%, 49.4%)
CIE-LABlab(18.46, 35.10, -56.17)
CIE-LCHlch(18.46, 66.24, 302.00°)
OKLaboklab(31.18% -0.0023 -0.1628)
OKLCHoklch(31.18% 0.163 269.2)
XYZxyz(4.7097, 2.6226, 21.0226)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151D81 #817915
analogous
#155381 #151D81 #431581
triadic
#151D81 #81151D #1D8115
tetradic
#151D81 #811553 #817915 #158143
square
#151D81 #811553 #817915 #158143
split-complementary
#151D81 #814315 #538115
monochromatic
#04061A #0C114C #151D81 #1E29B6 #333FDE

Accessibility & contrast

On white

13.77
#151D81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#151D81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151D81
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151D81#FFFFFF#000000##FFFFFF
##151D811.0013.771.5213.77
#FFFFFF13.771.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#00287F
Tritanopia (blue-blind)
#003B4E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #151d81;
/* rgb */ color: rgb(21, 29, 129);
/* oklch */ color: oklch(31.2% 0.163 269.2);
Tailwind
colors: {
  custom: {
    50: '#695aa7',
    500: '#151d81',
    950: '#000000',
  },
}
SCSS
$custom: #151d81;
$custom-light: #695aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#151d81",
  "rgb": {
    "r": 21,
    "g": 29,
    "b": 129
  },
  "hsl": {
    "h": 235.556,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31182,
    "c": 0.16278,
    "h": 269.2
  },
  "luminance": 0.02623
}

Semantic roles & 50–950 ramp

primary
#151D81
secondary
#B6AD3C
accent
#E139EF
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#080410
muted
#7A797F

Preview Lab

Preview with #151D81

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

Preview Lab → · Contrast checker → · Palette generator →

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