#171E57#171E57

#171E57 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.9% C 0.102 H 272.2°. Best body text is #FFFFFF at 15.44:1 contrast (WCAG AA passes).

Color values

HEX#171E57
RGBrgb(23, 30, 87)
HSLhsl(233, 58%, 22%)
HSVhsv(233, 74%, 34%)
CMYKcmyk(73.6%, 65.5%, 0%, 65.9%)
CIE-LABlab(14.39, 18.43, -35.45)
CIE-LCHlch(14.39, 39.96, 297.47°)
OKLaboklab(26.93% 0.0039 -0.1022)
OKLCHoklch(26.93% 0.102 272.2)
XYZxyz(2.5373, 1.7986, 9.2284)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E57 #575017
analogous
#173E57 #171E57 #301757
triadic
#171E57 #57171E #1E5717
tetradic
#171E57 #57173E #575017 #175730
square
#171E57 #57173E #575017 #175730
split-complementary
#171E57 #573017 #3E5717
monochromatic
#060818 #0A0D27 #171E57 #242F87 #313FB8

Accessibility & contrast

On white

15.44
#171E57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171E57
15.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E57#FFFFFF#000000##FFFFFF
##171E571.0015.441.3615.44
#FFFFFF15.441.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002759
Deuteranopia (green-blind)
#002256
Tritanopia (blue-blind)
#002C37
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #171e57;
/* rgb */ color: rgb(23, 30, 87);
/* oklch */ color: oklch(26.9% 0.102 272.2);
Tailwind
colors: {
  custom: {
    50: '#5e5987',
    500: '#171e57',
    950: '#000000',
  },
}
SCSS
$custom: #171e57;
$custom-light: #5e5987;
$custom-dark: #000000;
JSON
{
  "hex": "#171e57",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 87
  },
  "hsl": {
    "h": 233.438,
    "s": 58.182,
    "l": 21.569
  },
  "oklch": {
    "l": 0.26929,
    "c": 0.10229,
    "h": 272.2
  },
  "luminance": 0.01799
}

Semantic roles & 50–950 ramp

primary
#171E57
secondary
#8E853C
accent
#D046E1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #171E57

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

Preview Lab → · Contrast checker → · Palette generator →

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