#151C9E#151C9E

#151C9E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.199 H 268.0°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#151C9E
RGBrgb(21, 28, 158)
HSLhsl(237, 77%, 35%)
HSVhsv(237, 87%, 62%)
CMYKcmyk(86.7%, 82.3%, 0%, 38%)
CIE-LABlab(21.79, 45.63, -68.70)
CIE-LCHlch(21.79, 82.47, 303.59°)
OKLaboklab(34.54% -0.007 -0.199)
OKLCHoklch(34.54% 0.199 268)
XYZxyz(6.8939, 3.4577, 32.6452)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151C9E #9E9715
analogous
#15619E #151C9E #52159E
triadic
#151C9E #9E151C #1C9E15
tetradic
#151C9E #9E1561 #9E9715 #159E52
square
#151C9E #9E1561 #9E9715 #159E52
split-complementary
#151C9E #9E5215 #619E15
monochromatic
#070932 #0E1268 #151C9E #1C26D4 #474FE7

Accessibility & contrast

On white

12.41
#151C9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#151C9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151C9E
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151C9E#FFFFFF#000000##FFFFFF
##151C9E1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #151c9e;
/* rgb */ color: rgb(21, 28, 158);
/* oklch */ color: oklch(34.5% 0.199 268.0);
Tailwind
colors: {
  custom: {
    50: '#715bbc',
    500: '#151c9e',
    950: '#000000',
  },
}
SCSS
$custom: #151c9e;
$custom-light: #715bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#151c9e",
  "rgb": {
    "r": 21,
    "g": 28,
    "b": 158
  },
  "hsl": {
    "h": 236.934,
    "s": 76.536,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34541,
    "c": 0.19914,
    "h": 268
  },
  "luminance": 0.03459
}

Semantic roles & 50–950 ramp

primary
#151C9E
secondary
#C7C147
accent
#E935F3
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #151C9E

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

Preview Lab → · Contrast checker → · Palette generator →

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