#171871#171871

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

Color values

HEX#171871
RGBrgb(23, 24, 113)
HSLhsl(239, 66%, 27%)
HSVhsv(239, 80%, 44%)
CMYKcmyk(79.6%, 78.8%, 0%, 55.7%)
CIE-LABlab(15.63, 32.50, -50.60)
CIE-LCHlch(15.63, 60.14, 302.71°)
OKLaboklab(28.65% 0.0047 -0.1465)
OKLCHoklch(28.65% 0.147 271.8)
XYZxyz(3.6596, 2.0273, 15.8180)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171871 #717017
analogous
#174571 #171871 #431771
triadic
#171871 #711718 #187117
tetradic
#171871 #711745 #717017 #177143
square
#171871 #711745 #717017 #177143
split-complementary
#171871 #714317 #457117
monochromatic
#050519 #0D0D3E #171871 #2123A4 #2E30D4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##171871#FFFFFF#000000##FFFFFF
##1718711.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)
#002B74
Deuteranopia (green-blind)
#00226F
Tritanopia (blue-blind)
#003243
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #171871;
/* rgb */ color: rgb(23, 24, 113);
/* oklch */ color: oklch(28.7% 0.147 271.8);
Tailwind
colors: {
  custom: {
    50: '#66569b',
    500: '#171871',
    950: '#000000',
  },
}
SCSS
$custom: #171871;
$custom-light: #66569b;
$custom-dark: #000000;
JSON
{
  "hex": "#171871",
  "rgb": {
    "r": 23,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 239.333,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.28651,
    "c": 0.14657,
    "h": 271.8
  },
  "luminance": 0.02028
}

Semantic roles & 50–950 ramp

primary
#171871
secondary
#A7A53D
accent
#E73FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #171871

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

Preview Lab → · Contrast checker → · Palette generator →

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