#151972#151972

#151972 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.8% C 0.147 H 270.7°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#151972
RGBrgb(21, 25, 114)
HSLhsl(237, 69%, 26%)
HSVhsv(237, 82%, 45%)
CMYKcmyk(81.6%, 78.1%, 0%, 55.3%)
CIE-LABlab(15.85, 32.08, -50.90)
CIE-LCHlch(15.85, 60.17, 302.22°)
OKLaboklab(28.81% 0.0017 -0.1474)
OKLCHoklch(28.81% 0.147 270.7)
XYZxyz(3.6931, 2.0692, 16.1211)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151972 #726E15
analogous
#154872 #151972 #401572
triadic
#151972 #721519 #197215
tetradic
#151972 #721548 #726E15 #157240
square
#151972 #721548 #726E15 #157240
split-complementary
#151972 #724015 #487215
monochromatic
#05061A #0B0E3E #151972 #1F24A6 #2A31D8

Accessibility & contrast

On white

14.85
#151972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151972
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151972#FFFFFF#000000##FFFFFF
##1519721.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C75
Deuteranopia (green-blind)
#002370
Tritanopia (blue-blind)
#003344
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #151972;
/* rgb */ color: rgb(21, 25, 114);
/* oklch */ color: oklch(28.8% 0.147 270.7);
Tailwind
colors: {
  custom: {
    50: '#65579c',
    500: '#151972',
    950: '#000000',
  },
}
SCSS
$custom: #151972;
$custom-light: #65579c;
$custom-dark: #000000;
JSON
{
  "hex": "#151972",
  "rgb": {
    "r": 21,
    "g": 25,
    "b": 114
  },
  "hsl": {
    "h": 237.419,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.28807,
    "c": 0.14741,
    "h": 270.7
  },
  "luminance": 0.0207
}

Semantic roles & 50–950 ramp

primary
#151972
secondary
#A8A33B
accent
#E43CEC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #151972

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

Preview Lab → · Contrast checker → · Palette generator →

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