#171972#171972

#171972 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.9% C 0.147 H 271.6°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#171972
RGBrgb(23, 25, 114)
HSLhsl(239, 66%, 27%)
HSVhsv(239, 80%, 45%)
CMYKcmyk(79.8%, 78.1%, 0%, 55.3%)
CIE-LABlab(15.96, 32.25, -50.70)
CIE-LCHlch(15.96, 60.09, 302.46°)
OKLaboklab(28.92% 0.0041 -0.1468)
OKLCHoklch(28.92% 0.147 271.6)
XYZxyz(3.7372, 2.0919, 16.1231)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171972 #727017
analogous
#174772 #171972 #431772
triadic
#171972 #721719 #197217
tetradic
#171972 #721747 #727017 #177243
square
#171972 #721747 #727017 #177243
split-complementary
#171972 #724317 #477217
monochromatic
#050619 #0D0E3F #171972 #2124A5 #2E32D5

Accessibility & contrast

On white

14.81
#171972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#171972 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171972
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171972#FFFFFF#000000##FFFFFF
##1719721.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C75
Deuteranopia (green-blind)
#002370
Tritanopia (blue-blind)
#003344
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #171972;
/* rgb */ color: rgb(23, 25, 114);
/* oklch */ color: oklch(28.9% 0.147 271.6);
Tailwind
colors: {
  custom: {
    50: '#66579c',
    500: '#171972',
    950: '#000000',
  },
}
SCSS
$custom: #171972;
$custom-light: #66579c;
$custom-dark: #000000;
JSON
{
  "hex": "#171972",
  "rgb": {
    "r": 23,
    "g": 25,
    "b": 114
  },
  "hsl": {
    "h": 238.681,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.28921,
    "c": 0.14685,
    "h": 271.6
  },
  "luminance": 0.02092
}

Semantic roles & 50–950 ramp

primary
#171972
secondary
#A8A53D
accent
#E63EE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #171972

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

Preview Lab → · Contrast checker → · Palette generator →

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