#151872#151872

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

Color values

HEX#151872
RGBrgb(21, 24, 114)
HSLhsl(238, 69%, 26%)
HSVhsv(238, 82%, 45%)
CMYKcmyk(81.6%, 78.9%, 0%, 55.3%)
CIE-LABlab(15.63, 32.70, -51.26)
CIE-LCHlch(15.63, 60.80, 302.53°)
OKLaboklab(28.65% 0.0021 -0.1484)
OKLCHoklch(28.65% 0.148 270.8)
XYZxyz(3.6721, 2.0272, 16.1141)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151872 #726F15
analogous
#154772 #151872 #411572
triadic
#151872 #721518 #187215
tetradic
#151872 #721547 #726F15 #157241
square
#151872 #721547 #726F15 #157241
split-complementary
#151872 #724115 #477215
monochromatic
#05051A #0B0D3E #151872 #1F23A6 #2A2FD8

Accessibility & contrast

On white

14.94
#151872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151872
14.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151872#FFFFFF#000000##FFFFFF
##1518721.0014.941.4114.94
#FFFFFF14.941.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #151872;
/* rgb */ color: rgb(21, 24, 114);
/* oklch */ color: oklch(28.7% 0.148 270.8);
Tailwind
colors: {
  custom: {
    50: '#65569c',
    500: '#151872',
    950: '#000000',
  },
}
SCSS
$custom: #151872;
$custom-light: #65569c;
$custom-dark: #000000;
JSON
{
  "hex": "#151872",
  "rgb": {
    "r": 21,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 238.065,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.28653,
    "c": 0.14844,
    "h": 270.8
  },
  "luminance": 0.02028
}

Semantic roles & 50–950 ramp

primary
#151872
secondary
#A8A53B
accent
#E63CEC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #151872

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

Preview Lab → · Contrast checker → · Palette generator →

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