#171E71#171E71

#171E71 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.6% C 0.140 H 270.7°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#171E71
RGBrgb(23, 30, 113)
HSLhsl(235, 66%, 27%)
HSVhsv(235, 80%, 44%)
CMYKcmyk(79.6%, 73.5%, 0%, 55.7%)
CIE-LABlab(17.00, 28.68, -48.34)
CIE-LCHlch(17.00, 56.21, 300.68°)
OKLaboklab(29.63% 0.0017 -0.1399)
OKLCHoklch(29.63% 0.14 270.7)
XYZxyz(3.7972, 2.3025, 15.8639)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E71 #716A17
analogous
#174B71 #171E71 #3D1771
triadic
#171E71 #71171E #1E7117
tetradic
#171E71 #71174B #716A17 #17713D
square
#171E71 #71174B #716A17 #17713D
split-complementary
#171E71 #713D17 #4B7117
monochromatic
#050719 #0D113E #171E71 #212CA4 #2E3BD4

Accessibility & contrast

On white

14.38
#171E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#171E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171E71
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E71#FFFFFF#000000##FFFFFF
##171E711.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#00266F
Tritanopia (blue-blind)
#003545
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #171e71;
/* rgb */ color: rgb(23, 30, 113);
/* oklch */ color: oklch(29.6% 0.140 270.7);
Tailwind
colors: {
  custom: {
    50: '#655a9b',
    500: '#171e71',
    950: '#000000',
  },
}
SCSS
$custom: #171e71;
$custom-light: #655a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#171e71",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 113
  },
  "hsl": {
    "h": 235.333,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.2963,
    "c": 0.13995,
    "h": 270.7
  },
  "luminance": 0.02303
}

Semantic roles & 50–950 ramp

primary
#171E71
secondary
#A79E3D
accent
#DC3FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #171E71

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

Preview Lab → · Contrast checker → · Palette generator →

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