#171F63#171F63

#171F63 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.3% C 0.119 H 271.2°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#171F63
RGBrgb(23, 31, 99)
HSLhsl(234, 62%, 24%)
HSVhsv(234, 77%, 39%)
CMYKcmyk(76.8%, 68.7%, 0%, 61.2%)
CIE-LABlab(15.81, 22.54, -41.14)
CIE-LCHlch(15.81, 46.91, 298.71°)
OKLaboklab(28.33% 0.0025 -0.1189)
OKLCHoklch(28.33% 0.119 271.2)
XYZxyz(3.0947, 2.0627, 12.0370)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F63 #635B17
analogous
#174563 #171F63 #351763
triadic
#171F63 #63171F #1F6317
tetradic
#171F63 #631745 #635B17 #176335
square
#171F63 #631745 #635B17 #176335
split-complementary
#171F63 #633517 #456317
monochromatic
#060819 #0B0F31 #171F63 #232F95 #2E3EC6

Accessibility & contrast

On white

14.87
#171F63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171F63
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F63#FFFFFF#000000##FFFFFF
##171F631.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B65
Deuteranopia (green-blind)
#002462
Tritanopia (blue-blind)
#00313E
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #171f63;
/* rgb */ color: rgb(23, 31, 99);
/* oklch */ color: oklch(28.3% 0.119 271.2);
Tailwind
colors: {
  custom: {
    50: '#615a90',
    500: '#171f63',
    950: '#000000',
  },
}
SCSS
$custom: #171f63;
$custom-light: #615a90;
$custom-dark: #000000;
JSON
{
  "hex": "#171f63",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 99
  },
  "hsl": {
    "h": 233.684,
    "s": 62.295,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28328,
    "c": 0.11891,
    "h": 271.2
  },
  "luminance": 0.02063
}

Semantic roles & 50–950 ramp

primary
#171F63
secondary
#9A903C
accent
#D442E5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040D
muted
#7A797D

Preview Lab

Preview with #171F63

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

Preview Lab → · Contrast checker → · Palette generator →

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