#171F62#171F62

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

Color values

HEX#171F62
RGBrgb(23, 31, 98)
HSLhsl(234, 62%, 24%)
HSVhsv(234, 77%, 38%)
CMYKcmyk(76.5%, 68.4%, 0%, 61.6%)
CIE-LABlab(15.71, 22.14, -40.64)
CIE-LCHlch(15.71, 46.28, 298.58°)
OKLaboklab(28.23% 0.0026 -0.1174)
OKLCHoklch(28.23% 0.117 271.3)
XYZxyz(3.0472, 2.0437, 11.7868)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F62 #625A17
analogous
#174462 #171F62 #341762
triadic
#171F62 #62171F #1F6217
tetradic
#171F62 #621744 #625A17 #176234
square
#171F62 #621744 #625A17 #176234
split-complementary
#171F62 #623417 #446217
monochromatic
#060819 #0B0F30 #171F62 #232F94 #2E3EC5

Accessibility & contrast

On white

14.91
#171F62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#171F62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F62
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F62#FFFFFF#000000##FFFFFF
##171F621.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171f62;
/* rgb */ color: rgb(23, 31, 98);
/* oklch */ color: oklch(28.2% 0.117 271.3);
Tailwind
colors: {
  custom: {
    50: '#615a8f',
    500: '#171f62',
    950: '#000000',
  },
}
SCSS
$custom: #171f62;
$custom-light: #615a8f;
$custom-dark: #000000;
JSON
{
  "hex": "#171f62",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 98
  },
  "hsl": {
    "h": 233.6,
    "s": 61.983,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28226,
    "c": 0.11745,
    "h": 271.3
  },
  "luminance": 0.02044
}

Semantic roles & 50–950 ramp

primary
#171F62
secondary
#998F3C
accent
#D443E5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040C
muted
#7A797D

Preview Lab

Preview with #171F62

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

Preview Lab → · Contrast checker → · Palette generator →

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