#171E66#171E66

#171E66 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.4% C 0.125 H 271.4°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#171E66
RGBrgb(23, 30, 102)
HSLhsl(235, 63%, 25%)
HSVhsv(235, 77%, 40%)
CMYKcmyk(77.5%, 70.6%, 0%, 60%)
CIE-LABlab(15.85, 24.42, -43.06)
CIE-LCHlch(15.85, 49.50, 299.56°)
OKLaboklab(28.45% 0.003 -0.1245)
OKLCHoklch(28.45% 0.125 271.4)
XYZxyz(3.2151, 2.0697, 12.7978)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E66 #665F17
analogous
#174566 #171E66 #381766
triadic
#171E66 #66171E #1E6617
tetradic
#171E66 #661745 #665F17 #176638
square
#171E66 #661745 #665F17 #176638
split-complementary
#171E66 #663817 #456617
monochromatic
#060719 #0C0F34 #171E66 #222D98 #2E3BCA

Accessibility & contrast

On white

14.85
#171E66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#171E66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171E66
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E66#FFFFFF#000000##FFFFFF
##171E661.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171e66;
/* rgb */ color: rgb(23, 30, 102);
/* oklch */ color: oklch(28.4% 0.125 271.4);
Tailwind
colors: {
  custom: {
    50: '#625a92',
    500: '#171e66',
    950: '#000000',
  },
}
SCSS
$custom: #171e66;
$custom-light: #625a92;
$custom-dark: #000000;
JSON
{
  "hex": "#171e66",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 102
  },
  "hsl": {
    "h": 234.684,
    "s": 63.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.28447,
    "c": 0.12455,
    "h": 271.4
  },
  "luminance": 0.0207
}

Semantic roles & 50–950 ramp

primary
#171E66
secondary
#9C943C
accent
#D842E6
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06030D
muted
#7A787E

Preview Lab

Preview with #171E66

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

Preview Lab → · Contrast checker → · Palette generator →

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