#171A58#171A58

#171A58 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.2% C 0.109 H 273.8°. Best body text is #FFFFFF at 15.85:1 contrast (WCAG AA passes).

Color values

HEX#171A58
RGBrgb(23, 26, 88)
HSLhsl(237, 59%, 22%)
HSVhsv(237, 74%, 35%)
CMYKcmyk(73.9%, 70.5%, 0%, 65.5%)
CIE-LABlab(13.38, 21.72, -37.77)
CIE-LCHlch(13.38, 43.57, 299.90°)
OKLaboklab(26.22% 0.0073 -0.1091)
OKLCHoklch(26.22% 0.109 273.8)
XYZxyz(2.4836, 1.6253, 9.4135)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171A58 #585517
analogous
#173B58 #171A58 #351758
triadic
#171A58 #58171A #1A5817
tetradic
#171A58 #58173B #585517 #175835
square
#171A58 #58173B #585517 #175835
split-complementary
#171A58 #583517 #3B5817
monochromatic
#060718 #0A0C27 #171A58 #242889 #3037B9

Accessibility & contrast

On white

15.85
#171A58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#171A58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171A58
15.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171A58#FFFFFF#000000##FFFFFF
##171A581.0015.851.3315.85
#FFFFFF15.851.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255A
Deuteranopia (green-blind)
#001F57
Tritanopia (blue-blind)
#002A36
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #171a58;
/* rgb */ color: rgb(23, 26, 88);
/* oklch */ color: oklch(26.2% 0.109 273.8);
Tailwind
colors: {
  custom: {
    50: '#5e5688',
    500: '#171a58',
    950: '#000000',
  },
}
SCSS
$custom: #171a58;
$custom-light: #5e5688;
$custom-dark: #000000;
JSON
{
  "hex": "#171a58",
  "rgb": {
    "r": 23,
    "g": 26,
    "b": 88
  },
  "hsl": {
    "h": 237.231,
    "s": 58.559,
    "l": 21.765
  },
  "oklch": {
    "l": 0.26218,
    "c": 0.10931,
    "h": 273.8
  },
  "luminance": 0.01626
}

Semantic roles & 50–950 ramp

primary
#171A58
secondary
#8F8B3C
accent
#DB46E2
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030B
muted
#79787C

Preview Lab

Preview with #171A58

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

Preview Lab → · Contrast checker → · Palette generator →

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