#171D66#171D66

#171D66 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.3% C 0.126 H 271.7°. Best body text is #FFFFFF at 14.96:1 contrast (WCAG AA passes).

Color values

HEX#171D66
RGBrgb(23, 29, 102)
HSLhsl(235, 63%, 25%)
HSVhsv(235, 77%, 40%)
CMYKcmyk(77.5%, 71.6%, 0%, 60%)
CIE-LABlab(15.59, 25.12, -43.48)
CIE-LCHlch(15.59, 50.21, 300.01°)
OKLaboklab(28.26% 0.0037 -0.1257)
OKLCHoklch(28.26% 0.126 271.7)
XYZxyz(3.1902, 2.0199, 12.7895)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D66 #666017
analogous
#174566 #171D66 #391766
triadic
#171D66 #66171D #1D6617
tetradic
#171D66 #661745 #666017 #176639
square
#171D66 #661745 #666017 #176639
split-complementary
#171D66 #663917 #456617
monochromatic
#060719 #0C0F34 #171D66 #222B98 #2E39CA

Accessibility & contrast

On white

14.96
#171D66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#171D66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171D66
14.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D66#FFFFFF#000000##FFFFFF
##171D661.0014.961.4014.96
#FFFFFF14.961.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B68
Deuteranopia (green-blind)
#002365
Tritanopia (blue-blind)
#00313E
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #171d66;
/* rgb */ color: rgb(23, 29, 102);
/* oklch */ color: oklch(28.3% 0.126 271.7);
Tailwind
colors: {
  custom: {
    50: '#625992',
    500: '#171d66',
    950: '#000000',
  },
}
SCSS
$custom: #171d66;
$custom-light: #625992;
$custom-dark: #000000;
JSON
{
  "hex": "#171d66",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 102
  },
  "hsl": {
    "h": 235.443,
    "s": 63.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.28259,
    "c": 0.1258,
    "h": 271.7
  },
  "luminance": 0.0202
}

Semantic roles & 50–950 ramp

primary
#171D66
secondary
#9C953C
accent
#DA42E6
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06030D
muted
#7A787E

Preview Lab

Preview with #171D66

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

Preview Lab → · Contrast checker → · Palette generator →

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