#151772#151772

#151772 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.5% C 0.149 H 271.0°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#151772
RGBrgb(21, 23, 114)
HSLhsl(239, 69%, 26%)
HSVhsv(239, 82%, 45%)
CMYKcmyk(81.6%, 79.8%, 0%, 55.3%)
CIE-LABlab(15.42, 33.30, -51.61)
CIE-LCHlch(15.42, 61.42, 302.83°)
OKLaboklab(28.5% 0.0025 -0.1494)
OKLCHoklch(28.5% 0.149 271)
XYZxyz(3.6519, 1.9867, 16.1073)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151772 #727015
analogous
#154672 #151772 #421572
triadic
#151772 #721517 #177215
tetradic
#151772 #721546 #727015 #157242
square
#151772 #721546 #727015 #157242
split-complementary
#151772 #724215 #467215
monochromatic
#05051A #0B0D3E #151772 #1F21A6 #2A2DD8

Accessibility & contrast

On white

15.03
#151772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#151772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151772
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151772#FFFFFF#000000##FFFFFF
##1517721.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #151772;
/* rgb */ color: rgb(21, 23, 114);
/* oklch */ color: oklch(28.5% 0.149 271.0);
Tailwind
colors: {
  custom: {
    50: '#65559c',
    500: '#151772',
    950: '#000000',
  },
}
SCSS
$custom: #151772;
$custom-light: #65559c;
$custom-dark: #000000;
JSON
{
  "hex": "#151772",
  "rgb": {
    "r": 21,
    "g": 23,
    "b": 114
  },
  "hsl": {
    "h": 238.71,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.28503,
    "c": 0.14946,
    "h": 271
  },
  "luminance": 0.01987
}

Semantic roles & 50–950 ramp

primary
#151772
secondary
#A8A63B
accent
#E83CEC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #151772

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

Preview Lab → · Contrast checker → · Palette generator →

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