#171C81#171C81

#171C81 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.1% C 0.163 H 270.0°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#171C81
RGBrgb(23, 28, 129)
HSLhsl(237, 70%, 30%)
HSVhsv(237, 82%, 51%)
CMYKcmyk(82.2%, 78.3%, 0%, 49.4%)
CIE-LABlab(18.35, 35.84, -56.36)
CIE-LCHlch(18.35, 66.79, 302.45°)
OKLaboklab(31.13% 0.0001 -0.1632)
OKLCHoklch(31.13% 0.163 270)
XYZxyz(4.7297, 2.5971, 21.0166)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C81 #817C17
analogous
#175181 #171C81 #471781
triadic
#171C81 #81171C #1C8117
tetradic
#171C81 #811751 #817C17 #178147
square
#171C81 #811751 #817C17 #178147
split-complementary
#171C81 #814717 #518117
monochromatic
#05061A #0E114D #171C81 #2027B5 #373FDB

Accessibility & contrast

On white

13.82
#171C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#171C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171C81
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C81#FFFFFF#000000##FFFFFF
##171C811.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#00277F
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #171c81;
/* rgb */ color: rgb(23, 28, 129);
/* oklch */ color: oklch(31.1% 0.163 270.0);
Tailwind
colors: {
  custom: {
    50: '#6a5aa7',
    500: '#171c81',
    950: '#000000',
  },
}
SCSS
$custom: #171c81;
$custom-light: #6a5aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#171c81",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 129
  },
  "hsl": {
    "h": 237.17,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3113,
    "c": 0.16324,
    "h": 270
  },
  "luminance": 0.02598
}

Semantic roles & 50–950 ramp

primary
#171C81
secondary
#B5B03E
accent
#E43BED
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#080410
muted
#7A797F

Preview Lab

Preview with #171C81

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

Preview Lab → · Contrast checker → · Palette generator →

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