#171C5E#171C5E

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

Color values

HEX#171C5E
RGBrgb(23, 28, 94)
HSLhsl(236, 61%, 23%)
HSVhsv(236, 76%, 37%)
CMYKcmyk(75.5%, 70.2%, 0%, 63.1%)
CIE-LABlab(14.52, 22.67, -39.94)
CIE-LCHlch(14.52, 45.93, 299.58°)
OKLaboklab(27.23% 0.0052 -0.1154)
OKLCHoklch(27.23% 0.116 272.6)
XYZxyz(2.7883, 1.8205, 10.7920)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C5E #5E5917
analogous
#173F5E #171C5E #35175E
triadic
#171C5E #5E171C #1C5E17
tetradic
#171C5E #5E173F #5E5917 #175E35
square
#171C5E #5E173F #5E5917 #175E35
split-complementary
#171C5E #5E3517 #3F5E17
monochromatic
#060719 #0B0D2D #171C5E #232B8F #2F39C0

Accessibility & contrast

On white

15.39
#171C5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171C5E
15.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C5E#FFFFFF#000000##FFFFFF
##171C5E1.0015.391.3615.39
#FFFFFF15.391.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002860
Deuteranopia (green-blind)
#00215D
Tritanopia (blue-blind)
#002D3A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #171c5e;
/* rgb */ color: rgb(23, 28, 94);
/* oklch */ color: oklch(27.2% 0.116 272.6);
Tailwind
colors: {
  custom: {
    50: '#60588c',
    500: '#171c5e',
    950: '#000000',
  },
}
SCSS
$custom: #171c5e;
$custom-light: #60588c;
$custom-dark: #000000;
JSON
{
  "hex": "#171c5e",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 94
  },
  "hsl": {
    "h": 235.775,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.27228,
    "c": 0.11552,
    "h": 272.6
  },
  "luminance": 0.01821
}

Semantic roles & 50–950 ramp

primary
#171C5E
secondary
#958F3C
accent
#D944E4
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #171C5E

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

Preview Lab → · Contrast checker → · Palette generator →

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