#172871#172871

#172871 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.5% C 0.127 H 268.0°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#172871
RGBrgb(23, 40, 113)
HSLhsl(229, 66%, 27%)
HSVhsv(229, 80%, 44%)
CMYKcmyk(79.6%, 64.6%, 0%, 55.7%)
CIE-LABlab(19.60, 21.77, -44.07)
CIE-LCHlch(19.60, 49.15, 296.29°)
OKLaboklab(31.53% -0.0045 -0.1274)
OKLCHoklch(31.53% 0.127 268)
XYZxyz(4.0917, 2.8915, 15.9621)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172871 #716017
analogous
#175571 #172871 #331771
triadic
#172871 #711728 #287117
tetradic
#172871 #711755 #716017 #177133
square
#172871 #711755 #716017 #177133
split-complementary
#172871 #713317 #557117
monochromatic
#050919 #0D163E #172871 #213AA4 #2E4DD4

Accessibility & contrast

On white

13.30
#172871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#172871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172871
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172871#FFFFFF#000000##FFFFFF
##1728711.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#002B70
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #172871;
/* rgb */ color: rgb(23, 40, 113);
/* oklch */ color: oklch(31.5% 0.127 268.0);
Tailwind
colors: {
  custom: {
    50: '#64619b',
    500: '#172871',
    950: '#000000',
  },
}
SCSS
$custom: #172871;
$custom-light: #64619b;
$custom-dark: #000000;
JSON
{
  "hex": "#172871",
  "rgb": {
    "r": 23,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 228.667,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31533,
    "c": 0.12746,
    "h": 268
  },
  "luminance": 0.02892
}

Semantic roles & 50–950 ramp

primary
#172871
secondary
#A7933D
accent
#C93FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #172871

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

Preview Lab → · Contrast checker → · Palette generator →

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