#151A81#151A81

#151A81 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.7% C 0.166 H 269.5°. Best body text is #FFFFFF at 14.03:1 contrast (WCAG AA passes).

Color values

HEX#151A81
RGBrgb(21, 26, 129)
HSLhsl(237, 72%, 29%)
HSVhsv(237, 84%, 51%)
CMYKcmyk(83.7%, 79.8%, 0%, 49.4%)
CIE-LABlab(17.84, 36.87, -57.21)
CIE-LCHlch(17.84, 68.06, 302.80°)
OKLaboklab(30.74% -0.0014 -0.1657)
OKLCHoklch(30.74% 0.166 269.5)
XYZxyz(4.6397, 2.4827, 20.9993)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151A81 #817C15
analogous
#155081 #151A81 #461581
triadic
#151A81 #81151A #1A8115
tetradic
#151A81 #811550 #817C15 #158146
square
#151A81 #811550 #817C15 #158146
split-complementary
#151A81 #814615 #508115
monochromatic
#04051A #0C0F4C #151A81 #1E25B6 #333BDE

Accessibility & contrast

On white

14.03
#151A81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#151A81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151A81
14.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151A81#FFFFFF#000000##FFFFFF
##151A811.0014.031.5014.03
#FFFFFF14.031.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #151a81;
/* rgb */ color: rgb(21, 26, 129);
/* oklch */ color: oklch(30.7% 0.166 269.5);
Tailwind
colors: {
  custom: {
    50: '#6958a7',
    500: '#151a81',
    950: '#000000',
  },
}
SCSS
$custom: #151a81;
$custom-light: #6958a7;
$custom-dark: #000000;
JSON
{
  "hex": "#151a81",
  "rgb": {
    "r": 21,
    "g": 26,
    "b": 129
  },
  "hsl": {
    "h": 237.222,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3074,
    "c": 0.16573,
    "h": 269.5
  },
  "luminance": 0.02483
}

Semantic roles & 50–950 ramp

primary
#151A81
secondary
#B6B03C
accent
#E639EF
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#080310
muted
#7A787F

Preview Lab

Preview with #151A81

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

Preview Lab → · Contrast checker → · Palette generator →

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