#171FA0#171FA0

#171FA0 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.2% C 0.199 H 268.2°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#171FA0
RGBrgb(23, 31, 160)
HSLhsl(236, 75%, 36%)
HSVhsv(236, 86%, 63%)
CMYKcmyk(85.6%, 80.6%, 0%, 37.3%)
CIE-LABlab(22.65, 44.83, -68.49)
CIE-LCHlch(22.65, 81.86, 303.20°)
OKLaboklab(35.24% -0.0061 -0.1984)
OKLCHoklch(35.24% 0.199 268.2)
XYZxyz(7.1863, 3.6993, 33.5862)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171FA0 #A09817
analogous
#1763A0 #171FA0 #5317A0
triadic
#171FA0 #A0171F #1FA017
tetradic
#171FA0 #A01763 #A09817 #17A053
square
#171FA0 #A01763 #A09817 #17A053
split-complementary
#171FA0 #A05317 #63A017
monochromatic
#080A35 #0F156A #171FA0 #1F29D6 #4C55E5

Accessibility & contrast

On white

12.07
#171FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#171FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171FA0
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171FA0#FFFFFF#000000##FFFFFF
##171FA01.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA4
Deuteranopia (green-blind)
#002F9E
Tritanopia (blue-blind)
#004860
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #171fa0;
/* rgb */ color: rgb(23, 31, 160);
/* oklch */ color: oklch(35.2% 0.199 268.2);
Tailwind
colors: {
  custom: {
    50: '#725dbd',
    500: '#171fa0',
    950: '#000000',
  },
}
SCSS
$custom: #171fa0;
$custom-light: #725dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#171fa0",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 160
  },
  "hsl": {
    "h": 236.496,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35236,
    "c": 0.19853,
    "h": 268.2
  },
  "luminance": 0.037
}

Semantic roles & 50–950 ramp

primary
#171FA0
secondary
#C7C04C
accent
#E736F1
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #171FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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