#151C51#151C51

#151C51 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.8% C 0.096 H 272.0°. Best body text is #FFFFFF at 15.95:1 contrast (WCAG AA passes).

Color values

HEX#151C51
RGBrgb(21, 28, 81)
HSLhsl(233, 59%, 20%)
HSVhsv(233, 74%, 32%)
CMYKcmyk(74.1%, 65.4%, 0%, 68.2%)
CIE-LABlab(13.13, 17.13, -33.44)
CIE-LCHlch(13.13, 37.57, 297.12°)
OKLaboklab(25.79% 0.0034 -0.0964)
OKLCHoklch(25.79% 0.096 272)
XYZxyz(2.2092, 1.5838, 7.9723)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151C51 #514A15
analogous
#153A51 #151C51 #2C1551
triadic
#151C51 #51151C #1C5115
tetradic
#151C51 #51153A #514A15 #15512C
square
#151C51 #51153A #514A15 #15512C
split-complementary
#151C51 #512C15 #3A5115
monochromatic
#060818 #080B20 #151C51 #222D82 #2E3EB2

Accessibility & contrast

On white

15.95
#151C51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#151C51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151C51
15.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151C51#FFFFFF#000000##FFFFFF
##151C511.0015.951.3215.95
#FFFFFF15.951.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002553
Deuteranopia (green-blind)
#001F50
Tritanopia (blue-blind)
#002933
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #151c51;
/* rgb */ color: rgb(21, 28, 81);
/* oklch */ color: oklch(25.8% 0.096 272.0);
Tailwind
colors: {
  custom: {
    50: '#5b5882',
    500: '#151c51',
    950: '#000000',
  },
}
SCSS
$custom: #151c51;
$custom-light: #5b5882;
$custom-dark: #000000;
JSON
{
  "hex": "#151c51",
  "rgb": {
    "r": 21,
    "g": 28,
    "b": 81
  },
  "hsl": {
    "h": 233,
    "s": 58.824,
    "l": 20
  },
  "oklch": {
    "l": 0.25787,
    "c": 0.09646,
    "h": 272
  },
  "luminance": 0.01584
}

Semantic roles & 50–950 ramp

primary
#151C51
secondary
#897F39
accent
#D046E2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030A
muted
#79787C

Preview Lab

Preview with #151C51

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

Preview Lab → · Contrast checker → · Palette generator →

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