#171C66#171C66

#171C66 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.1% C 0.127 H 271.9°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#171C66
RGBrgb(23, 28, 102)
HSLhsl(236, 63%, 25%)
HSVhsv(236, 77%, 40%)
CMYKcmyk(77.5%, 72.5%, 0%, 60%)
CIE-LABlab(15.34, 25.80, -43.90)
CIE-LCHlch(15.34, 50.92, 300.45°)
OKLaboklab(28.08% 0.0043 -0.127)
OKLCHoklch(28.08% 0.127 271.9)
XYZxyz(3.1661, 1.9717, 12.7815)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C66 #666117
analogous
#174366 #171C66 #3A1766
triadic
#171C66 #66171C #1C6617
tetradic
#171C66 #661743 #666117 #17663A
square
#171C66 #661743 #666117 #17663A
split-complementary
#171C66 #663A17 #436617
monochromatic
#060719 #0C0E34 #171C66 #222A98 #2E37CA

Accessibility & contrast

On white

15.06
#171C66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#171C66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171C66
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C66#FFFFFF#000000##FFFFFF
##171C661.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A68
Deuteranopia (green-blind)
#002365
Tritanopia (blue-blind)
#00303E
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #171c66;
/* rgb */ color: rgb(23, 28, 102);
/* oklch */ color: oklch(28.1% 0.127 271.9);
Tailwind
colors: {
  custom: {
    50: '#625892',
    500: '#171c66',
    950: '#000000',
  },
}
SCSS
$custom: #171c66;
$custom-light: #625892;
$custom-dark: #000000;
JSON
{
  "hex": "#171c66",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 102
  },
  "hsl": {
    "h": 236.203,
    "s": 63.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.28076,
    "c": 0.12703,
    "h": 271.9
  },
  "luminance": 0.01972
}

Semantic roles & 50–950 ramp

primary
#171C66
secondary
#9C963C
accent
#DC42E6
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06030D
muted
#7A787E

Preview Lab

Preview with #171C66

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

Preview Lab → · Contrast checker → · Palette generator →

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