#151871#151871

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

Color values

HEX#151871
RGBrgb(21, 24, 113)
HSLhsl(238, 69%, 26%)
HSVhsv(238, 81%, 44%)
CMYKcmyk(81.4%, 78.8%, 0%, 55.7%)
CIE-LABlab(15.51, 32.33, -50.80)
CIE-LCHlch(15.51, 60.22, 302.47°)
OKLaboklab(28.54% 0.0023 -0.1471)
OKLCHoklch(28.54% 0.147 270.9)
XYZxyz(3.6155, 2.0045, 15.8159)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151871 #716E15
analogous
#154671 #151871 #401571
triadic
#151871 #711518 #187115
tetradic
#151871 #711546 #716E15 #157140
square
#151871 #711546 #716E15 #157140
split-complementary
#151871 #714015 #467115
monochromatic
#05051A #0B0D3D #151871 #1F23A5 #292FD7

Accessibility & contrast

On white

14.99
#151871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151871
14.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151871#FFFFFF#000000##FFFFFF
##1518711.0014.991.4014.99
#FFFFFF14.991.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #151871;
/* rgb */ color: rgb(21, 24, 113);
/* oklch */ color: oklch(28.5% 0.147 270.9);
Tailwind
colors: {
  custom: {
    50: '#65569b',
    500: '#151871',
    950: '#000000',
  },
}
SCSS
$custom: #151871;
$custom-light: #65569b;
$custom-dark: #000000;
JSON
{
  "hex": "#151871",
  "rgb": {
    "r": 21,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 238.043,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.28535,
    "c": 0.14714,
    "h": 270.9
  },
  "luminance": 0.02005
}

Semantic roles & 50–950 ramp

primary
#151871
secondary
#A7A43B
accent
#E63CEB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #151871

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

Preview Lab → · Contrast checker → · Palette generator →

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