#171D58#171D58

#171D58 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.8% C 0.105 H 272.6°. Best body text is #FFFFFF at 15.52:1 contrast (WCAG AA passes).

Color values

HEX#171D58
RGBrgb(23, 29, 88)
HSLhsl(234, 59%, 22%)
HSVhsv(234, 74%, 35%)
CMYKcmyk(73.9%, 67%, 0%, 65.5%)
CIE-LABlab(14.20, 19.57, -36.43)
CIE-LCHlch(14.20, 41.35, 298.24°)
OKLaboklab(26.82% 0.0048 -0.1051)
OKLCHoklch(26.82% 0.105 272.6)
XYZxyz(2.5536, 1.7652, 9.4368)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D58 #585217
analogous
#173E58 #171D58 #321758
triadic
#171D58 #58171D #1D5817
tetradic
#171D58 #58173E #585217 #175832
square
#171D58 #58173E #585217 #175832
split-complementary
#171D58 #583217 #3E5817
monochromatic
#060818 #0A0D27 #171D58 #242D89 #303DB9

Accessibility & contrast

On white

15.52
#171D58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#171D58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171D58
15.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D58#FFFFFF#000000##FFFFFF
##171D581.0015.521.3515.52
#FFFFFF15.521.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275A
Deuteranopia (green-blind)
#002157
Tritanopia (blue-blind)
#002C37
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #171d58;
/* rgb */ color: rgb(23, 29, 88);
/* oklch */ color: oklch(26.8% 0.105 272.6);
Tailwind
colors: {
  custom: {
    50: '#5e5888',
    500: '#171d58',
    950: '#000000',
  },
}
SCSS
$custom: #171d58;
$custom-light: #5e5888;
$custom-dark: #000000;
JSON
{
  "hex": "#171d58",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 88
  },
  "hsl": {
    "h": 234.462,
    "s": 58.559,
    "l": 21.765
  },
  "oklch": {
    "l": 0.26819,
    "c": 0.10522,
    "h": 272.6
  },
  "luminance": 0.01765
}

Semantic roles & 50–950 ramp

primary
#171D58
secondary
#8F873C
accent
#D346E2
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030B
muted
#79787C

Preview Lab

Preview with #171D58

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

Preview Lab → · Contrast checker → · Palette generator →

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