#171E62#171E62

#171E62 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 28.0% C 0.119 H 271.6°. Best body text is #FFFFFF at 15.02:1 contrast (WCAG AA passes).

Color values

HEX#171E62
RGBrgb(23, 30, 98)
HSLhsl(234, 62%, 24%)
HSVhsv(234, 77%, 38%)
CMYKcmyk(76.5%, 69.4%, 0%, 61.6%)
CIE-LABlab(15.45, 22.85, -41.08)
CIE-LCHlch(15.45, 47.00, 299.08°)
OKLaboklab(28.03% 0.0033 -0.1187)
OKLCHoklch(28.03% 0.119 271.6)
XYZxyz(3.0215, 1.9922, 11.7782)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E62 #625B17
analogous
#174362 #171E62 #351762
triadic
#171E62 #62171E #1E6217
tetradic
#171E62 #621743 #625B17 #176235
square
#171E62 #621743 #625B17 #176235
split-complementary
#171E62 #623517 #436217
monochromatic
#060819 #0B0F30 #171E62 #232D94 #2E3CC5

Accessibility & contrast

On white

15.02
#171E62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#171E62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171E62
15.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E62#FFFFFF#000000##FFFFFF
##171E621.0015.021.4015.02
#FFFFFF15.021.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A64
Deuteranopia (green-blind)
#002361
Tritanopia (blue-blind)
#00303D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #171e62;
/* rgb */ color: rgb(23, 30, 98);
/* oklch */ color: oklch(28.0% 0.119 271.6);
Tailwind
colors: {
  custom: {
    50: '#61598f',
    500: '#171e62',
    950: '#000000',
  },
}
SCSS
$custom: #171e62;
$custom-light: #61598f;
$custom-dark: #000000;
JSON
{
  "hex": "#171e62",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 98
  },
  "hsl": {
    "h": 234.4,
    "s": 61.983,
    "l": 23.725
  },
  "oklch": {
    "l": 0.2803,
    "c": 0.11876,
    "h": 271.6
  },
  "luminance": 0.01993
}

Semantic roles & 50–950 ramp

primary
#171E62
secondary
#99903C
accent
#D643E5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #171E62

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

Preview Lab → · Contrast checker → · Palette generator →

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