#171666#171666

#171666 is a dark, vivid blue. Relative luminance 0.017; OKLCH L 27.1% C 0.134 H 273.4°. Best body text is #FFFFFF at 15.64:1 contrast (WCAG AA passes).

Color values

HEX#171666
RGBrgb(23, 22, 102)
HSLhsl(241, 65%, 24%)
HSVhsv(241, 78%, 40%)
CMYKcmyk(77.5%, 78.4%, 0%, 60%)
CIE-LABlab(13.91, 29.73, -46.24)
CIE-LCHlch(13.91, 54.98, 302.74°)
OKLaboklab(27.06% 0.0079 -0.1338)
OKLCHoklch(27.06% 0.134 273.4)
XYZxyz(3.0377, 1.7150, 12.7387)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171666 #656616
analogous
#163D66 #171666 #3F1666
triadic
#171666 #661716 #166617
tetradic
#171666 #66163D #656616 #16663F
square
#171666 #66163D #656616 #16663F
split-complementary
#171666 #663F16 #3D6616
monochromatic
#060519 #0C0B34 #171666 #222198 #2E2CCB

Accessibility & contrast

On white

15.64
#171666 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#171666 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171666
15.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171666#FFFFFF#000000##FFFFFF
##1716661.0015.641.3415.64
#FFFFFF15.641.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002768
Deuteranopia (green-blind)
#002065
Tritanopia (blue-blind)
#002D3D
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #171666;
/* rgb */ color: rgb(23, 22, 102);
/* oklch */ color: oklch(27.1% 0.134 273.4);
Tailwind
colors: {
  custom: {
    50: '#635493',
    500: '#171666',
    950: '#000000',
  },
}
SCSS
$custom: #171666;
$custom-light: #635493;
$custom-dark: #000000;
JSON
{
  "hex": "#171666",
  "rgb": {
    "r": 23,
    "g": 22,
    "b": 102
  },
  "hsl": {
    "h": 240.75,
    "s": 64.516,
    "l": 24.314
  },
  "oklch": {
    "l": 0.27055,
    "c": 0.13401,
    "h": 273.4
  },
  "luminance": 0.01715
}

Semantic roles & 50–950 ramp

primary
#171666
secondary
#9B9D3B
accent
#E840E5
background
#F6F4F9
surface
#EBE7F1
border
#C6C3CB
text
#06030D
muted
#7A787E

Preview Lab

Preview with #171666

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

Preview Lab → · Contrast checker → · Palette generator →

#171666 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva