#151B9E#151B9E

#151B9E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.4% C 0.200 H 268.0°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#151B9E
RGBrgb(21, 27, 158)
HSLhsl(237, 77%, 35%)
HSVhsv(237, 87%, 62%)
CMYKcmyk(86.7%, 82.9%, 0%, 38%)
CIE-LABlab(21.62, 46.13, -68.99)
CIE-LCHlch(21.62, 82.99, 303.77°)
OKLaboklab(34.42% -0.0069 -0.1998)
OKLCHoklch(34.42% 0.2 268)
XYZxyz(6.8706, 3.4111, 32.6374)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151B9E #9E9815
analogous
#15609E #151B9E #53159E
triadic
#151B9E #9E151B #1B9E15
tetradic
#151B9E #9E1560 #9E9815 #159E53
square
#151B9E #9E1560 #9E9815 #159E53
split-complementary
#151B9E #9E5315 #609E15
monochromatic
#070932 #0E1268 #151B9E #1C24D4 #474EE7

Accessibility & contrast

On white

12.48
#151B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#151B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151B9E
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151B9E#FFFFFF#000000##FFFFFF
##151B9E1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA2
Deuteranopia (green-blind)
#002C9C
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #151b9e;
/* rgb */ color: rgb(21, 27, 158);
/* oklch */ color: oklch(34.4% 0.200 268.0);
Tailwind
colors: {
  custom: {
    50: '#715bbc',
    500: '#151b9e',
    950: '#000000',
  },
}
SCSS
$custom: #151b9e;
$custom-light: #715bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#151b9e",
  "rgb": {
    "r": 21,
    "g": 27,
    "b": 158
  },
  "hsl": {
    "h": 237.372,
    "s": 76.536,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34422,
    "c": 0.19994,
    "h": 268
  },
  "luminance": 0.03412
}

Semantic roles & 50–950 ramp

primary
#151B9E
secondary
#C7C247
accent
#EB35F3
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #151B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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