#171F84#171F84

#171F84 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.164 H 269.5°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#171F84
RGBrgb(23, 31, 132)
HSLhsl(236, 70%, 30%)
HSVhsv(236, 83%, 52%)
CMYKcmyk(82.6%, 76.5%, 0%, 48.2%)
CIE-LABlab(19.34, 35.11, -56.62)
CIE-LCHlch(19.34, 66.62, 301.80°)
OKLaboklab(31.93% -0.0014 -0.164)
OKLCHoklch(31.93% 0.164 269.5)
XYZxyz(5.0068, 2.8275, 22.1072)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F84 #847C17
analogous
#175684 #171F84 #451784
triadic
#171F84 #84171F #1F8417
tetradic
#171F84 #841756 #847C17 #178445
square
#171F84 #841756 #847C17 #178445
split-complementary
#171F84 #844517 #568417
monochromatic
#05071C #0E1350 #171F84 #202BB8 #3945DC

Accessibility & contrast

On white

13.41
#171F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#171F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F84
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F84#FFFFFF#000000##FFFFFF
##171F841.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003487
Deuteranopia (green-blind)
#002982
Tritanopia (blue-blind)
#003D50
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #171f84;
/* rgb */ color: rgb(23, 31, 132);
/* oklch */ color: oklch(31.9% 0.164 269.5);
Tailwind
colors: {
  custom: {
    50: '#6a5ca9',
    500: '#171f84',
    950: '#000000',
  },
}
SCSS
$custom: #171f84;
$custom-light: #6a5ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#171f84",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 132
  },
  "hsl": {
    "h": 235.596,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.31933,
    "c": 0.16404,
    "h": 269.5
  },
  "luminance": 0.02828
}

Semantic roles & 50–950 ramp

primary
#171F84
secondary
#B8AF3F
accent
#E03BED
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#080410
muted
#7A797F

Preview Lab

Preview with #171F84

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

Preview Lab → · Contrast checker → · Palette generator →

#171F84 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva