#151981#151981

#151981 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.6% C 0.167 H 269.6°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#151981
RGBrgb(21, 25, 129)
HSLhsl(238, 72%, 29%)
HSVhsv(238, 84%, 51%)
CMYKcmyk(83.7%, 80.6%, 0%, 49.4%)
CIE-LABlab(17.64, 37.45, -57.54)
CIE-LCHlch(17.64, 68.65, 303.06°)
OKLaboklab(30.6% -0.0011 -0.1667)
OKLCHoklch(30.6% 0.167 269.6)
XYZxyz(4.6180, 2.4391, 20.9920)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151981 #817D15
analogous
#154F81 #151981 #471581
triadic
#151981 #811519 #198115
tetradic
#151981 #81154F #817D15 #158147
square
#151981 #81154F #817D15 #158147
split-complementary
#151981 #814715 #4F8115
monochromatic
#04051A #0C0F4C #151981 #1E23B6 #3339DE

Accessibility & contrast

On white

14.11
#151981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#151981 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151981
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151981#FFFFFF#000000##FFFFFF
##1519811.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003184
Deuteranopia (green-blind)
#00267F
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #151981;
/* rgb */ color: rgb(21, 25, 129);
/* oklch */ color: oklch(30.6% 0.167 269.6);
Tailwind
colors: {
  custom: {
    50: '#6958a7',
    500: '#151981',
    950: '#000000',
  },
}
SCSS
$custom: #151981;
$custom-light: #6958a7;
$custom-dark: #000000;
JSON
{
  "hex": "#151981",
  "rgb": {
    "r": 21,
    "g": 25,
    "b": 129
  },
  "hsl": {
    "h": 237.778,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.30601,
    "c": 0.16666,
    "h": 269.6
  },
  "luminance": 0.0244
}

Semantic roles & 50–950 ramp

primary
#151981
secondary
#B6B13C
accent
#E839EF
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#080310
muted
#7A787F

Preview Lab

Preview with #151981

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

Preview Lab → · Contrast checker → · Palette generator →

#151981 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva