#171E7E#171E7E

#171E7E is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.1% C 0.157 H 270.0°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#171E7E
RGBrgb(23, 30, 126)
HSLhsl(236, 69%, 29%)
HSVhsv(236, 82%, 49%)
CMYKcmyk(81.7%, 76.2%, 0%, 50.6%)
CIE-LABlab(18.44, 33.54, -54.31)
CIE-LCHlch(18.44, 63.83, 301.70°)
OKLaboklab(31.09% -0.0001 -0.1573)
OKLCHoklch(31.09% 0.157 270)
XYZxyz(4.5822, 2.6165, 19.9982)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E7E #7E7717
analogous
#17527E #171E7E #44177E
triadic
#171E7E #7E171E #1E7E17
tetradic
#171E7E #7E1752 #7E7717 #177E44
square
#171E7E #7E1752 #7E7717 #177E44
split-complementary
#171E7E #7E4417 #527E17
monochromatic
#05061A #0E124A #171E7E #202AB2 #3540DA

Accessibility & contrast

On white

13.78
#171E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#171E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171E7E
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E7E#FFFFFF#000000##FFFFFF
##171E7E1.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#00287C
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #171e7e;
/* rgb */ color: rgb(23, 30, 126);
/* oklch */ color: oklch(31.1% 0.157 270.0);
Tailwind
colors: {
  custom: {
    50: '#695ba4',
    500: '#171e7e',
    950: '#000000',
  },
}
SCSS
$custom: #171e7e;
$custom-light: #695ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#171e7e",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 126
  },
  "hsl": {
    "h": 235.922,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31089,
    "c": 0.15731,
    "h": 270
  },
  "luminance": 0.02617
}

Semantic roles & 50–950 ramp

primary
#171E7E
secondary
#B3AB3E
accent
#E03CEC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #171E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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