#171976#171976

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

Color values

HEX#171976
RGBrgb(23, 25, 118)
HSLhsl(239, 67%, 28%)
HSVhsv(239, 81%, 46%)
CMYKcmyk(80.5%, 78.8%, 0%, 53.7%)
CIE-LABlab(16.43, 33.70, -52.51)
CIE-LCHlch(16.43, 62.39, 302.69°)
OKLaboklab(29.39% 0.0033 -0.152)
OKLCHoklch(29.39% 0.152 271.2)
XYZxyz(3.9699, 2.1850, 17.3485)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171976 #767417
analogous
#174876 #171976 #451776
triadic
#171976 #761719 #197617
tetradic
#171976 #761748 #767417 #177645
square
#171976 #761748 #767417 #177645
split-complementary
#171976 #764517 #487617
monochromatic
#05051A #0D0E43 #171976 #2124A9 #3134D7

Accessibility & contrast

On white

14.61
#171976 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171976
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171976#FFFFFF#000000##FFFFFF
##1719761.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D79
Deuteranopia (green-blind)
#002474
Tritanopia (blue-blind)
#003546
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #171976;
/* rgb */ color: rgb(23, 25, 118);
/* oklch */ color: oklch(29.4% 0.152 271.2);
Tailwind
colors: {
  custom: {
    50: '#67579f',
    500: '#171976',
    950: '#000000',
  },
}
SCSS
$custom: #171976;
$custom-light: #67579f;
$custom-dark: #000000;
JSON
{
  "hex": "#171976",
  "rgb": {
    "r": 23,
    "g": 25,
    "b": 118
  },
  "hsl": {
    "h": 238.737,
    "s": 67.376,
    "l": 27.647
  },
  "oklch": {
    "l": 0.2939,
    "c": 0.15208,
    "h": 271.2
  },
  "luminance": 0.02185
}

Semantic roles & 50–950 ramp

primary
#171976
secondary
#ABA93E
accent
#E73EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030F
muted
#7A787E

Preview Lab

Preview with #171976

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

Preview Lab → · Contrast checker → · Palette generator →

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