#171E4C#171E4C

#171E4C is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.9% C 0.085 H 272.5°. Best body text is #FFFFFF at 15.83:1 contrast (WCAG AA passes).

Color values

HEX#171E4C
RGBrgb(23, 30, 76)
HSLhsl(232, 54%, 19%)
HSVhsv(232, 70%, 30%)
CMYKcmyk(69.7%, 60.5%, 0%, 70.2%)
CIE-LABlab(13.43, 13.95, -29.54)
CIE-LCHlch(13.43, 32.66, 295.28°)
OKLaboklab(25.91% 0.0038 -0.0848)
OKLCHoklch(25.91% 0.085 272.5)
XYZxyz(2.1217, 1.6323, 7.0393)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E4C #4C4517
analogous
#17394C #171E4C #2B174C
triadic
#171E4C #4C171E #1E4C17
tetradic
#171E4C #4C1739 #4C4517 #174C2B
square
#171E4C #4C1739 #4C4517 #174C2B
split-complementary
#171E4C #4C2B17 #394C17
monochromatic
#070917 #090B1D #171E4C #25317B #3343AA

Accessibility & contrast

On white

15.83
#171E4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171E4C
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E4C#FFFFFF#000000##FFFFFF
##171E4C1.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01254E
Deuteranopia (green-blind)
#00204B
Tritanopia (blue-blind)
#002931
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #171e4c;
/* rgb */ color: rgb(23, 30, 76);
/* oklch */ color: oklch(25.9% 0.085 272.5);
Tailwind
colors: {
  custom: {
    50: '#5b597e',
    500: '#171e4c',
    950: '#000000',
  },
}
SCSS
$custom: #171e4c;
$custom-light: #5b597e;
$custom-dark: #000000;
JSON
{
  "hex": "#171e4c",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 76
  },
  "hsl": {
    "h": 232.075,
    "s": 53.535,
    "l": 19.412
  },
  "oklch": {
    "l": 0.25905,
    "c": 0.0849,
    "h": 272.5
  },
  "luminance": 0.01633
}

Semantic roles & 50–950 ramp

primary
#171E4C
secondary
#837A3C
accent
#CA4BDD
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #171E4C

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

Preview Lab → · Contrast checker → · Palette generator →

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