#171878#171878

#171878 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.5% C 0.156 H 271.2°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#171878
RGBrgb(23, 24, 120)
HSLhsl(239, 68%, 28%)
HSVhsv(239, 81%, 47%)
CMYKcmyk(80.8%, 80%, 0%, 52.9%)
CIE-LABlab(16.46, 35.00, -53.75)
CIE-LCHlch(16.46, 64.14, 303.07°)
OKLaboklab(29.48% 0.0033 -0.1556)
OKLCHoklch(29.48% 0.156 271.2)
XYZxyz(4.0690, 2.1910, 17.9741)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171878 #787717
analogous
#174978 #171878 #461778
triadic
#171878 #781718 #187817
tetradic
#171878 #781749 #787717 #177846
square
#171878 #781749 #787717 #177846
split-complementary
#171878 #784617 #497817
monochromatic
#05051A #0D0E45 #171878 #2122AB #3233D8

Accessibility & contrast

On white

14.60
#171878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#171878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171878
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171878#FFFFFF#000000##FFFFFF
##1718781.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7B
Deuteranopia (green-blind)
#002476
Tritanopia (blue-blind)
#003547
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #171878;
/* rgb */ color: rgb(23, 24, 120);
/* oklch */ color: oklch(29.5% 0.156 271.2);
Tailwind
colors: {
  custom: {
    50: '#6857a0',
    500: '#171878',
    950: '#000000',
  },
}
SCSS
$custom: #171878;
$custom-light: #6857a0;
$custom-dark: #000000;
JSON
{
  "hex": "#171878",
  "rgb": {
    "r": 23,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 239.381,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29481,
    "c": 0.15565,
    "h": 271.2
  },
  "luminance": 0.02191
}

Semantic roles & 50–950 ramp

primary
#171878
secondary
#ADAC3E
accent
#E93DEB
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #171878

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

Preview Lab → · Contrast checker → · Palette generator →

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