#171879#171879

#171879 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.6% C 0.157 H 271.1°. Best body text is #FFFFFF at 14.55:1 contrast (WCAG AA passes).

Color values

HEX#171879
RGBrgb(23, 24, 121)
HSLhsl(239, 68%, 28%)
HSVhsv(239, 81%, 47%)
CMYKcmyk(81%, 80.2%, 0%, 52.5%)
CIE-LABlab(16.58, 35.35, -54.19)
CIE-LCHlch(16.58, 64.70, 303.12°)
OKLaboklab(29.6% 0.0031 -0.1569)
OKLCHoklch(29.6% 0.157 271.1)
XYZxyz(4.1300, 2.2154, 18.2954)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171879 #797817
analogous
#174979 #171879 #471779
triadic
#171879 #791718 #187917
tetradic
#171879 #791749 #797817 #177947
square
#171879 #791749 #797817 #177947
split-complementary
#171879 #794717 #497917
monochromatic
#05051A #0D0E46 #171879 #2122AC #3234D8

Accessibility & contrast

On white

14.55
#171879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171879
14.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171879#FFFFFF#000000##FFFFFF
##1718791.0014.551.4414.55
#FFFFFF14.551.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7C
Deuteranopia (green-blind)
#002477
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #171879;
/* rgb */ color: rgb(23, 24, 121);
/* oklch */ color: oklch(29.6% 0.157 271.1);
Tailwind
colors: {
  custom: {
    50: '#6857a1',
    500: '#171879',
    950: '#000000',
  },
}
SCSS
$custom: #171879;
$custom-light: #6857a1;
$custom-dark: #000000;
JSON
{
  "hex": "#171879",
  "rgb": {
    "r": 23,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 239.388,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.296,
    "c": 0.15694,
    "h": 271.1
  },
  "luminance": 0.02216
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #171879

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

Preview Lab → · Contrast checker → · Palette generator →

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