#171973#171973

#171973 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.0% C 0.148 H 271.5°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#171973
RGBrgb(23, 25, 115)
HSLhsl(239, 67%, 27%)
HSVhsv(239, 80%, 45%)
CMYKcmyk(80%, 78.3%, 0%, 54.9%)
CIE-LABlab(16.08, 32.62, -51.16)
CIE-LCHlch(16.08, 60.67, 302.52°)
OKLaboklab(29.04% 0.0039 -0.1481)
OKLCHoklch(29.04% 0.148 271.5)
XYZxyz(3.7944, 2.1148, 16.4246)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171973 #737117
analogous
#174773 #171973 #431773
triadic
#171973 #731719 #197317
tetradic
#171973 #731747 #737117 #177343
square
#171973 #731747 #737117 #177343
split-complementary
#171973 #734317 #477317
monochromatic
#05061A #0D0E40 #171973 #2124A6 #2F33D5

Accessibility & contrast

On white

14.76
#171973 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171973
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171973#FFFFFF#000000##FFFFFF
##1719731.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C76
Deuteranopia (green-blind)
#002371
Tritanopia (blue-blind)
#003345
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #171973;
/* rgb */ color: rgb(23, 25, 115);
/* oklch */ color: oklch(29.0% 0.148 271.5);
Tailwind
colors: {
  custom: {
    50: '#66579c',
    500: '#171973',
    950: '#000000',
  },
}
SCSS
$custom: #171973;
$custom-light: #66579c;
$custom-dark: #000000;
JSON
{
  "hex": "#171973",
  "rgb": {
    "r": 23,
    "g": 25,
    "b": 115
  },
  "hsl": {
    "h": 238.696,
    "s": 66.667,
    "l": 27.059
  },
  "oklch": {
    "l": 0.29038,
    "c": 0.14816,
    "h": 271.5
  },
  "luminance": 0.02115
}

Semantic roles & 50–950 ramp

primary
#171973
secondary
#A9A63D
accent
#E63EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #171973

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

Preview Lab → · Contrast checker → · Palette generator →

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