#151971#151971

#151971 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.7% C 0.146 H 270.7°. Best body text is #FFFFFF at 14.90:1 contrast (WCAG AA passes).

Color values

HEX#151971
RGBrgb(21, 25, 113)
HSLhsl(237, 69%, 26%)
HSVhsv(237, 81%, 44%)
CMYKcmyk(81.4%, 77.9%, 0%, 55.7%)
CIE-LABlab(15.73, 31.72, -50.44)
CIE-LCHlch(15.73, 59.59, 302.16°)
OKLaboklab(28.69% 0.0019 -0.1461)
OKLCHoklch(28.69% 0.146 270.7)
XYZxyz(3.6365, 2.0465, 15.8229)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151971 #716D15
analogous
#154771 #151971 #3F1571
triadic
#151971 #711519 #197115
tetradic
#151971 #711547 #716D15 #15713F
square
#151971 #711547 #716D15 #15713F
split-complementary
#151971 #713F15 #477115
monochromatic
#05061A #0B0E3D #151971 #1F24A5 #2931D7

Accessibility & contrast

On white

14.90
#151971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#151971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151971
14.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151971#FFFFFF#000000##FFFFFF
##1519711.0014.901.4114.90
#FFFFFF14.901.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00236F
Tritanopia (blue-blind)
#003343
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #151971;
/* rgb */ color: rgb(21, 25, 113);
/* oklch */ color: oklch(28.7% 0.146 270.7);
Tailwind
colors: {
  custom: {
    50: '#65579b',
    500: '#151971',
    950: '#000000',
  },
}
SCSS
$custom: #151971;
$custom-light: #65579b;
$custom-dark: #000000;
JSON
{
  "hex": "#151971",
  "rgb": {
    "r": 21,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 237.391,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.2869,
    "c": 0.14609,
    "h": 270.7
  },
  "luminance": 0.02047
}

Semantic roles & 50–950 ramp

primary
#151971
secondary
#A7A23B
accent
#E43CEB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #151971

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

Preview Lab → · Contrast checker → · Palette generator →

#151971 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva