#151F81#151F81

#151F81 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.5% C 0.161 H 268.9°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#151F81
RGBrgb(21, 31, 129)
HSLhsl(234, 72%, 29%)
HSVhsv(234, 84%, 51%)
CMYKcmyk(83.7%, 76%, 0%, 49.4%)
CIE-LABlab(18.90, 33.86, -55.45)
CIE-LCHlch(18.90, 64.97, 301.41°)
OKLaboklab(31.49% -0.003 -0.1607)
OKLCHoklch(31.49% 0.161 268.9)
XYZxyz(4.7603, 2.7238, 21.0395)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F81 #817715
analogous
#155581 #151F81 #411581
triadic
#151F81 #81151F #1F8115
tetradic
#151F81 #811555 #817715 #158141
square
#151F81 #811555 #817715 #158141
split-complementary
#151F81 #814115 #558115
monochromatic
#04061A #0C124C #151F81 #1E2CB6 #3343DE

Accessibility & contrast

On white

13.59
#151F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#151F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151F81
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F81#FFFFFF#000000##FFFFFF
##151F811.0013.591.5413.59
#FFFFFF13.591.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#00297F
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #151f81;
/* rgb */ color: rgb(21, 31, 129);
/* oklch */ color: oklch(31.5% 0.161 268.9);
Tailwind
colors: {
  custom: {
    50: '#695ba7',
    500: '#151f81',
    950: '#000000',
  },
}
SCSS
$custom: #151f81;
$custom-light: #695ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#151f81",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 129
  },
  "hsl": {
    "h": 234.444,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31494,
    "c": 0.1607,
    "h": 268.9
  },
  "luminance": 0.02724
}

Semantic roles & 50–950 ramp

primary
#151F81
secondary
#B6AB3C
accent
#DE39EF
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#070410
muted
#7A797F

Preview Lab

Preview with #151F81

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

Preview Lab → · Contrast checker → · Palette generator →

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