#171E61#171E61

#171E61 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.9% C 0.117 H 271.7°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#171E61
RGBrgb(23, 30, 97)
HSLhsl(234, 62%, 24%)
HSVhsv(234, 76%, 38%)
CMYKcmyk(76.3%, 69.1%, 0%, 62%)
CIE-LABlab(15.35, 22.45, -40.58)
CIE-LCHlch(15.35, 46.37, 298.95°)
OKLaboklab(27.93% 0.0034 -0.1172)
OKLCHoklch(27.93% 0.117 271.7)
XYZxyz(2.9746, 1.9735, 11.5311)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E61 #615A17
analogous
#174361 #171E61 #351761
triadic
#171E61 #61171E #1E6117
tetradic
#171E61 #611743 #615A17 #176135
square
#171E61 #611743 #615A17 #176135
split-complementary
#171E61 #613517 #436117
monochromatic
#060819 #0B0F30 #171E61 #232D92 #2E3DC4

Accessibility & contrast

On white

15.06
#171E61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#171E61 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171E61
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E61#FFFFFF#000000##FFFFFF
##171E611.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A63
Deuteranopia (green-blind)
#002360
Tritanopia (blue-blind)
#00303C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #171e61;
/* rgb */ color: rgb(23, 30, 97);
/* oklch */ color: oklch(27.9% 0.117 271.7);
Tailwind
colors: {
  custom: {
    50: '#60598f',
    500: '#171e61',
    950: '#000000',
  },
}
SCSS
$custom: #171e61;
$custom-light: #60598f;
$custom-dark: #000000;
JSON
{
  "hex": "#171e61",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 97
  },
  "hsl": {
    "h": 234.324,
    "s": 61.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.27927,
    "c": 0.11729,
    "h": 271.7
  },
  "luminance": 0.01974
}

Semantic roles & 50–950 ramp

primary
#171E61
secondary
#988F3C
accent
#D543E5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #171E61

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

Preview Lab → · Contrast checker → · Palette generator →

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