#151B81#151B81

#151B81 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.9% C 0.165 H 269.4°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#151B81
RGBrgb(21, 27, 129)
HSLhsl(237, 72%, 29%)
HSVhsv(237, 84%, 51%)
CMYKcmyk(83.7%, 79.1%, 0%, 49.4%)
CIE-LABlab(18.04, 36.29, -56.87)
CIE-LCHlch(18.04, 67.46, 302.54°)
OKLaboklab(30.88% -0.0017 -0.1647)
OKLCHoklch(30.88% 0.165 269.4)
XYZxyz(4.6623, 2.5277, 21.0068)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151B81 #817B15
analogous
#155181 #151B81 #451581
triadic
#151B81 #81151B #1B8115
tetradic
#151B81 #811551 #817B15 #158145
square
#151B81 #811551 #817B15 #158145
split-complementary
#151B81 #814515 #518115
monochromatic
#04061A #0C104C #151B81 #1E26B6 #333CDE

Accessibility & contrast

On white

13.95
#151B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#151B81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151B81
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151B81#FFFFFF#000000##FFFFFF
##151B811.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003184
Deuteranopia (green-blind)
#00277F
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #151b81;
/* rgb */ color: rgb(21, 27, 129);
/* oklch */ color: oklch(30.9% 0.165 269.4);
Tailwind
colors: {
  custom: {
    50: '#6959a7',
    500: '#151b81',
    950: '#000000',
  },
}
SCSS
$custom: #151b81;
$custom-light: #6959a7;
$custom-dark: #000000;
JSON
{
  "hex": "#151b81",
  "rgb": {
    "r": 21,
    "g": 27,
    "b": 129
  },
  "hsl": {
    "h": 236.667,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.30884,
    "c": 0.16476,
    "h": 269.4
  },
  "luminance": 0.02528
}

Semantic roles & 50–950 ramp

primary
#151B81
secondary
#B6AF3C
accent
#E539EF
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#080310
muted
#7A787F

Preview Lab

Preview with #151B81

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

Preview Lab → · Contrast checker → · Palette generator →

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