#171872#171872

#171872 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.8% C 0.148 H 271.7°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#171872
RGBrgb(23, 24, 114)
HSLhsl(239, 66%, 27%)
HSVhsv(239, 80%, 45%)
CMYKcmyk(79.8%, 78.9%, 0%, 55.3%)
CIE-LABlab(15.75, 32.86, -51.06)
CIE-LCHlch(15.75, 60.72, 302.77°)
OKLaboklab(28.77% 0.0045 -0.1478)
OKLCHoklch(28.77% 0.148 271.7)
XYZxyz(3.7162, 2.0499, 16.1161)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171872 #727117
analogous
#174672 #171872 #441772
triadic
#171872 #721718 #187217
tetradic
#171872 #721746 #727117 #177244
square
#171872 #721746 #727117 #177244
split-complementary
#171872 #724417 #467217
monochromatic
#050519 #0D0D3F #171872 #2123A5 #2E30D5

Accessibility & contrast

On white

14.89
#171872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171872
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171872#FFFFFF#000000##FFFFFF
##1718721.0014.891.4114.89
#FFFFFF14.891.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171872;
/* rgb */ color: rgb(23, 24, 114);
/* oklch */ color: oklch(28.8% 0.148 271.7);
Tailwind
colors: {
  custom: {
    50: '#66569c',
    500: '#171872',
    950: '#000000',
  },
}
SCSS
$custom: #171872;
$custom-light: #66569c;
$custom-dark: #000000;
JSON
{
  "hex": "#171872",
  "rgb": {
    "r": 23,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 239.341,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.28768,
    "c": 0.14788,
    "h": 271.7
  },
  "luminance": 0.0205
}

Semantic roles & 50–950 ramp

primary
#171872
secondary
#A8A63D
accent
#E73EE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #171872

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

Preview Lab → · Contrast checker → · Palette generator →

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