#151771#151771

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

Color values

HEX#151771
RGBrgb(21, 23, 113)
HSLhsl(239, 69%, 26%)
HSVhsv(239, 81%, 44%)
CMYKcmyk(81.4%, 79.6%, 0%, 55.7%)
CIE-LABlab(15.30, 32.94, -51.16)
CIE-LCHlch(15.30, 60.84, 302.78°)
OKLaboklab(28.38% 0.0027 -0.1481)
OKLCHoklch(28.38% 0.148 271)
XYZxyz(3.5953, 1.9641, 15.8092)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151771 #716F15
analogous
#154571 #151771 #411571
triadic
#151771 #711517 #177115
tetradic
#151771 #711545 #716F15 #157141
square
#151771 #711545 #716F15 #157141
split-complementary
#151771 #714115 #457115
monochromatic
#05051A #0B0C3D #151771 #1F22A5 #292DD7

Accessibility & contrast

On white

15.08
#151771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#151771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151771
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151771#FFFFFF#000000##FFFFFF
##1517711.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B74
Deuteranopia (green-blind)
#00226F
Tritanopia (blue-blind)
#003243
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #151771;
/* rgb */ color: rgb(21, 23, 113);
/* oklch */ color: oklch(28.4% 0.148 271.0);
Tailwind
colors: {
  custom: {
    50: '#65559b',
    500: '#151771',
    950: '#000000',
  },
}
SCSS
$custom: #151771;
$custom-light: #65559b;
$custom-dark: #000000;
JSON
{
  "hex": "#151771",
  "rgb": {
    "r": 21,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 238.696,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.28383,
    "c": 0.14815,
    "h": 271
  },
  "luminance": 0.01964
}

Semantic roles & 50–950 ramp

primary
#151771
secondary
#A7A53B
accent
#E83CEB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #151771

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

Preview Lab → · Contrast checker → · Palette generator →

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