#151C71#151C71

#151C71 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.2% C 0.143 H 270.2°. Best body text is #FFFFFF at 14.62:1 contrast (WCAG AA passes).

Color values

HEX#151C71
RGBrgb(21, 28, 113)
HSLhsl(235, 69%, 26%)
HSVhsv(235, 81%, 44%)
CMYKcmyk(81.4%, 75.2%, 0%, 55.7%)
CIE-LABlab(16.41, 29.80, -49.31)
CIE-LCHlch(16.41, 57.62, 301.15°)
OKLaboklab(29.18% 0.0005 -0.1428)
OKLCHoklch(29.18% 0.143 270.2)
XYZxyz(3.7041, 2.1818, 15.8455)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151C71 #716A15
analogous
#154A71 #151C71 #3C1571
triadic
#151C71 #71151C #1C7115
tetradic
#151C71 #71154A #716A15 #15713C
square
#151C71 #71154A #716A15 #15713C
split-complementary
#151C71 #713C15 #4A7115
monochromatic
#05061A #0B0F3D #151C71 #1F29A5 #2936D7

Accessibility & contrast

On white

14.62
#151C71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#151C71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151C71
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151C71#FFFFFF#000000##FFFFFF
##151C711.0014.621.4414.62
#FFFFFF14.621.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D74
Deuteranopia (green-blind)
#00246F
Tritanopia (blue-blind)
#003444
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #151c71;
/* rgb */ color: rgb(21, 28, 113);
/* oklch */ color: oklch(29.2% 0.143 270.2);
Tailwind
colors: {
  custom: {
    50: '#64599b',
    500: '#151c71',
    950: '#000000',
  },
}
SCSS
$custom: #151c71;
$custom-light: #64599b;
$custom-dark: #000000;
JSON
{
  "hex": "#151c71",
  "rgb": {
    "r": 21,
    "g": 28,
    "b": 113
  },
  "hsl": {
    "h": 235.435,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29178,
    "c": 0.14281,
    "h": 270.2
  },
  "luminance": 0.02182
}

Semantic roles & 50–950 ramp

primary
#151C71
secondary
#A79F3B
accent
#DE3CEB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #151C71

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

Preview Lab → · Contrast checker → · Palette generator →

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