#171979#171979

#171979 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.7% C 0.156 H 271.0°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#171979
RGBrgb(23, 25, 121)
HSLhsl(239, 68%, 28%)
HSVhsv(239, 81%, 47%)
CMYKcmyk(81%, 79.3%, 0%, 52.5%)
CIE-LABlab(16.78, 34.77, -53.85)
CIE-LCHlch(16.78, 64.10, 302.85°)
OKLaboklab(29.74% 0.0027 -0.1559)
OKLCHoklch(29.74% 0.156 271)
XYZxyz(4.1510, 2.2574, 18.3024)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171979 #797717
analogous
#174A79 #171979 #461779
triadic
#171979 #791719 #197917
tetradic
#171979 #79174A #797717 #177946
square
#171979 #79174A #797717 #177946
split-complementary
#171979 #794617 #4A7917
monochromatic
#05051A #0D0E46 #171979 #2124AC #3236D8

Accessibility & contrast

On white

14.47
#171979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#171979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171979
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171979#FFFFFF#000000##FFFFFF
##1719791.0014.471.4514.47
#FFFFFF14.471.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171979;
/* rgb */ color: rgb(23, 25, 121);
/* oklch */ color: oklch(29.7% 0.156 271.0);
Tailwind
colors: {
  custom: {
    50: '#6857a1',
    500: '#171979',
    950: '#000000',
  },
}
SCSS
$custom: #171979;
$custom-light: #6857a1;
$custom-dark: #000000;
JSON
{
  "hex": "#171979",
  "rgb": {
    "r": 23,
    "g": 25,
    "b": 121
  },
  "hsl": {
    "h": 238.776,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.29745,
    "c": 0.15596,
    "h": 271
  },
  "luminance": 0.02258
}

Semantic roles & 50–950 ramp

primary
#171979
secondary
#AEAC3E
accent
#E73DEB
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #171979

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

Preview Lab → · Contrast checker → · Palette generator →

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