#171876#171876

#171876 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.2% C 0.153 H 271.4°. Best body text is #FFFFFF at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#171876
RGBrgb(23, 24, 118)
HSLhsl(239, 67%, 28%)
HSVhsv(239, 81%, 46%)
CMYKcmyk(80.5%, 79.7%, 0%, 53.7%)
CIE-LABlab(16.22, 34.29, -52.86)
CIE-LCHlch(16.22, 63.01, 302.97°)
OKLaboklab(29.24% 0.0037 -0.153)
OKLCHoklch(29.24% 0.153 271.4)
XYZxyz(3.9489, 2.1430, 17.3415)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171876 #767517
analogous
#174876 #171876 #451776
triadic
#171876 #761718 #187617
tetradic
#171876 #761748 #767517 #177645
square
#171876 #761748 #767517 #177645
split-complementary
#171876 #764517 #487617
monochromatic
#05051A #0D0E43 #171876 #2122A9 #3132D7

Accessibility & contrast

On white

14.70
#171876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#171876 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171876
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171876#FFFFFF#000000##FFFFFF
##1718761.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D79
Deuteranopia (green-blind)
#002374
Tritanopia (blue-blind)
#003446
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #171876;
/* rgb */ color: rgb(23, 24, 118);
/* oklch */ color: oklch(29.2% 0.153 271.4);
Tailwind
colors: {
  custom: {
    50: '#67569f',
    500: '#171876',
    950: '#000000',
  },
}
SCSS
$custom: #171876;
$custom-light: #67569f;
$custom-dark: #000000;
JSON
{
  "hex": "#171876",
  "rgb": {
    "r": 23,
    "g": 24,
    "b": 118
  },
  "hsl": {
    "h": 239.368,
    "s": 67.376,
    "l": 27.647
  },
  "oklch": {
    "l": 0.29242,
    "c": 0.15308,
    "h": 271.4
  },
  "luminance": 0.02143
}

Semantic roles & 50–950 ramp

primary
#171876
secondary
#ABAA3E
accent
#E83EEA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030F
muted
#7A787E

Preview Lab

Preview with #171876

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

Preview Lab → · Contrast checker → · Palette generator →

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