#171E58#171E58

#171E58 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.0% C 0.104 H 272.1°. Best body text is #FFFFFF at 15.41:1 contrast (WCAG AA passes).

Color values

HEX#171E58
RGBrgb(23, 30, 88)
HSLhsl(234, 59%, 22%)
HSVhsv(234, 74%, 35%)
CMYKcmyk(73.9%, 65.9%, 0%, 65.5%)
CIE-LABlab(14.48, 18.84, -35.97)
CIE-LCHlch(14.48, 40.61, 297.64°)
OKLaboklab(27.03% 0.0039 -0.1037)
OKLCHoklch(27.03% 0.104 272.1)
XYZxyz(2.5785, 1.8150, 9.4451)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E58 #585117
analogous
#173F58 #171E58 #311758
triadic
#171E58 #58171E #1E5817
tetradic
#171E58 #58173F #585117 #175831
square
#171E58 #58173F #585117 #175831
split-complementary
#171E58 #583117 #3F5817
monochromatic
#060818 #0A0D27 #171E58 #242F89 #303FB9

Accessibility & contrast

On white

15.41
#171E58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#171E58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171E58
15.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E58#FFFFFF#000000##FFFFFF
##171E581.0015.411.3615.41
#FFFFFF15.411.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285A
Deuteranopia (green-blind)
#002257
Tritanopia (blue-blind)
#002D37
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #171e58;
/* rgb */ color: rgb(23, 30, 88);
/* oklch */ color: oklch(27.0% 0.104 272.1);
Tailwind
colors: {
  custom: {
    50: '#5e5988',
    500: '#171e58',
    950: '#000000',
  },
}
SCSS
$custom: #171e58;
$custom-light: #5e5988;
$custom-dark: #000000;
JSON
{
  "hex": "#171e58",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 88
  },
  "hsl": {
    "h": 233.538,
    "s": 58.559,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27026,
    "c": 0.10382,
    "h": 272.1
  },
  "luminance": 0.01815
}

Semantic roles & 50–950 ramp

primary
#171E58
secondary
#8F863C
accent
#D146E2
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030B
muted
#79787C

Preview Lab

Preview with #171E58

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

Preview Lab → · Contrast checker → · Palette generator →

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