#171E7F#171E7F

#171E7F is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.2% C 0.159 H 269.9°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#171E7F
RGBrgb(23, 30, 127)
HSLhsl(236, 69%, 29%)
HSVhsv(236, 82%, 50%)
CMYKcmyk(81.9%, 76.4%, 0%, 50.2%)
CIE-LABlab(18.55, 33.90, -54.76)
CIE-LCHlch(18.55, 64.40, 301.76°)
OKLaboklab(31.2% -0.0003 -0.1586)
OKLCHoklch(31.2% 0.159 269.9)
XYZxyz(4.6471, 2.6425, 20.3397)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E7F #7F7817
analogous
#17527F #171E7F #44177F
triadic
#171E7F #7F171E #1E7F17
tetradic
#171E7F #7F1752 #7F7817 #177F44
square
#171E7F #7F1752 #7F7817 #177F44
split-complementary
#171E7F #7F4417 #527F17
monochromatic
#05061A #0E124B #171E7F #202AB3 #3641DB

Accessibility & contrast

On white

13.74
#171E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#171E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171E7F
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E7F#FFFFFF#000000##FFFFFF
##171E7F1.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#00287D
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #171e7f;
/* rgb */ color: rgb(23, 30, 127);
/* oklch */ color: oklch(31.2% 0.159 269.9);
Tailwind
colors: {
  custom: {
    50: '#695ba5',
    500: '#171e7f',
    950: '#000000',
  },
}
SCSS
$custom: #171e7f;
$custom-light: #695ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#171e7f",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 127
  },
  "hsl": {
    "h": 235.962,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31203,
    "c": 0.15861,
    "h": 269.9
  },
  "luminance": 0.02643
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #171E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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