#171E7D#171E7D

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

Color values

HEX#171E7D
RGBrgb(23, 30, 125)
HSLhsl(236, 69%, 29%)
HSVhsv(236, 82%, 49%)
CMYKcmyk(81.6%, 76%, 0%, 51%)
CIE-LABlab(18.32, 33.17, -53.86)
CIE-LCHlch(18.32, 63.26, 301.63°)
OKLaboklab(30.98% 0 -0.156)
OKLCHoklch(30.98% 0.156 270)
XYZxyz(4.5180, 2.5909, 19.6600)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E7D #7D7617
analogous
#17517D #171E7D #43177D
triadic
#171E7D #7D171E #1E7D17
tetradic
#171E7D #7D1751 #7D7617 #177D43
square
#171E7D #7D1751 #7D7617 #177D43
split-complementary
#171E7D #7D4317 #517D17
monochromatic
#05061A #0D1249 #171E7D #212AB1 #3540DA

Accessibility & contrast

On white

13.83
#171E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171E7D
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E7D#FFFFFF#000000##FFFFFF
##171E7D1.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171e7d;
/* rgb */ color: rgb(23, 30, 125);
/* oklch */ color: oklch(31.0% 0.156 270.0);
Tailwind
colors: {
  custom: {
    50: '#685ba4',
    500: '#171e7d',
    950: '#000000',
  },
}
SCSS
$custom: #171e7d;
$custom-light: #685ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#171e7d",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 125
  },
  "hsl": {
    "h": 235.882,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30975,
    "c": 0.15601,
    "h": 270
  },
  "luminance": 0.02591
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #171E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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