#171870#171870

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

Color values

HEX#171870
RGBrgb(23, 24, 112)
HSLhsl(239, 66%, 26%)
HSVhsv(239, 79%, 44%)
CMYKcmyk(79.5%, 78.6%, 0%, 56.1%)
CIE-LABlab(15.51, 32.14, -50.15)
CIE-LCHlch(15.51, 59.56, 302.66°)
OKLaboklab(28.53% 0.0049 -0.1452)
OKLCHoklch(28.53% 0.145 271.9)
XYZxyz(3.6036, 2.0049, 15.5232)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171870 #706F17
analogous
#174570 #171870 #431770
triadic
#171870 #701718 #187017
tetradic
#171870 #701745 #706F17 #177043
square
#171870 #701745 #706F17 #177043
split-complementary
#171870 #704317 #457017
monochromatic
#050519 #0D0D3D #171870 #2123A3 #2D2FD4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##171870#FFFFFF#000000##FFFFFF
##1718701.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)
#002B73
Deuteranopia (green-blind)
#00226E
Tritanopia (blue-blind)
#003243
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #171870;
/* rgb */ color: rgb(23, 24, 112);
/* oklch */ color: oklch(28.5% 0.145 271.9);
Tailwind
colors: {
  custom: {
    50: '#65569a',
    500: '#171870',
    950: '#000000',
  },
}
SCSS
$custom: #171870;
$custom-light: #65569a;
$custom-dark: #000000;
JSON
{
  "hex": "#171870",
  "rgb": {
    "r": 23,
    "g": 24,
    "b": 112
  },
  "hsl": {
    "h": 239.326,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.28533,
    "c": 0.14525,
    "h": 271.9
  },
  "luminance": 0.02005
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #171870

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

Preview Lab → · Contrast checker → · Palette generator →

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