#171D7E#171D7E

#171D7E is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.9% C 0.158 H 270.1°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#171D7E
RGBrgb(23, 29, 126)
HSLhsl(237, 69%, 29%)
HSVhsv(237, 82%, 49%)
CMYKcmyk(81.7%, 77%, 0%, 50.6%)
CIE-LABlab(18.22, 34.16, -54.67)
CIE-LCHlch(18.22, 64.47, 301.99°)
OKLaboklab(30.93% 0.0003 -0.1584)
OKLCHoklch(30.93% 0.158 270.1)
XYZxyz(4.5573, 2.5667, 19.9899)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D7E #7E7817
analogous
#17517E #171D7E #45177E
triadic
#171D7E #7E171D #1D7E17
tetradic
#171D7E #7E1751 #7E7817 #177E45
square
#171D7E #7E1751 #7E7817 #177E45
split-complementary
#171D7E #7E4517 #517E17
monochromatic
#05061A #0E114A #171D7E #2029B2 #353FDA

Accessibility & contrast

On white

13.88
#171D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#171D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171D7E
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D7E#FFFFFF#000000##FFFFFF
##171D7E1.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #171d7e;
/* rgb */ color: rgb(23, 29, 126);
/* oklch */ color: oklch(30.9% 0.158 270.1);
Tailwind
colors: {
  custom: {
    50: '#695aa4',
    500: '#171d7e',
    950: '#000000',
  },
}
SCSS
$custom: #171d7e;
$custom-light: #695aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#171d7e",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 236.505,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30932,
    "c": 0.15836,
    "h": 270.1
  },
  "luminance": 0.02567
}

Semantic roles & 50–950 ramp

primary
#171D7E
secondary
#B3AC3E
accent
#E23CEC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #171D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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