#171E4D#171E4D

#171E4D is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.0% C 0.087 H 272.5°. Best body text is #FFFFFF at 15.80:1 contrast (WCAG AA passes).

Color values

HEX#171E4D
RGBrgb(23, 30, 77)
HSLhsl(232, 54%, 20%)
HSVhsv(232, 70%, 30%)
CMYKcmyk(70.1%, 61%, 0%, 69.8%)
CIE-LABlab(13.51, 14.36, -30.09)
CIE-LCHlch(13.51, 33.34, 295.51°)
OKLaboklab(26% 0.0038 -0.0864)
OKLCHoklch(26% 0.087 272.5)
XYZxyz(2.1567, 1.6463, 7.2239)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E4D #4D4617
analogous
#17394D #171E4D #2B174D
triadic
#171E4D #4D171E #1E4D17
tetradic
#171E4D #4D1739 #4D4617 #174D2B
square
#171E4D #4D1739 #4D4617 #174D2B
split-complementary
#171E4D #4D2B17 #394D17
monochromatic
#070918 #090C1E #171E4D #25307C #3343AB

Accessibility & contrast

On white

15.80
#171E4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#171E4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171E4D
15.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E4D#FFFFFF#000000##FFFFFF
##171E4D1.0015.801.3315.80
#FFFFFF15.801.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00254F
Deuteranopia (green-blind)
#00204C
Tritanopia (blue-blind)
#002932
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #171e4d;
/* rgb */ color: rgb(23, 30, 77);
/* oklch */ color: oklch(26.0% 0.087 272.5);
Tailwind
colors: {
  custom: {
    50: '#5b597f',
    500: '#171e4d',
    950: '#000000',
  },
}
SCSS
$custom: #171e4d;
$custom-light: #5b597f;
$custom-dark: #000000;
JSON
{
  "hex": "#171e4d",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 77
  },
  "hsl": {
    "h": 232.222,
    "s": 54,
    "l": 19.608
  },
  "oklch": {
    "l": 0.25995,
    "c": 0.08652,
    "h": 272.5
  },
  "luminance": 0.01647
}

Semantic roles & 50–950 ramp

primary
#171E4D
secondary
#847B3C
accent
#CA4ADD
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #171E4D

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

Preview Lab → · Contrast checker → · Palette generator →

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