#171E6B#171E6B

#171E6B is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.0% C 0.132 H 271.1°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#171E6B
RGBrgb(23, 30, 107)
HSLhsl(235, 65%, 25%)
HSVhsv(235, 79%, 42%)
CMYKcmyk(78.5%, 72%, 0%, 58%)
CIE-LABlab(16.36, 26.38, -45.49)
CIE-LCHlch(16.36, 52.58, 300.11°)
OKLaboklab(28.98% 0.0025 -0.1316)
OKLCHoklch(28.98% 0.132 271.1)
XYZxyz(3.4706, 2.1719, 14.1434)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E6B #6B6417
analogous
#17486B #171E6B #3A176B
triadic
#171E6B #6B171E #1E6B17
tetradic
#171E6B #6B1748 #6B6417 #176B3A
square
#171E6B #6B1748 #6B6417 #176B3A
split-complementary
#171E6B #6B3A17 #486B17
monochromatic
#050719 #0C1039 #171E6B #222C9D #2D3AD0

Accessibility & contrast

On white

14.64
#171E6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#171E6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171E6B
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E6B#FFFFFF#000000##FFFFFF
##171E6B1.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6D
Deuteranopia (green-blind)
#00256A
Tritanopia (blue-blind)
#003342
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #171e6b;
/* rgb */ color: rgb(23, 30, 107);
/* oklch */ color: oklch(29.0% 0.132 271.1);
Tailwind
colors: {
  custom: {
    50: '#635a96',
    500: '#171e6b',
    950: '#000000',
  },
}
SCSS
$custom: #171e6b;
$custom-light: #635a96;
$custom-dark: #000000;
JSON
{
  "hex": "#171e6b",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 107
  },
  "hsl": {
    "h": 235,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28978,
    "c": 0.13163,
    "h": 271.1
  },
  "luminance": 0.02172
}

Semantic roles & 50–950 ramp

primary
#171E6B
secondary
#A1993D
accent
#DA40E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #171E6B

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

Preview Lab → · Contrast checker → · Palette generator →

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