#171D63#171D63

#171D63 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 27.9% C 0.121 H 271.9°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#171D63
RGBrgb(23, 29, 99)
HSLhsl(235, 62%, 24%)
HSVhsv(235, 77%, 39%)
CMYKcmyk(76.8%, 70.7%, 0%, 61.2%)
CIE-LABlab(15.28, 23.94, -42.01)
CIE-LCHlch(15.28, 48.35, 299.68°)
OKLaboklab(27.94% 0.004 -0.1214)
OKLCHoklch(27.94% 0.122 271.9)
XYZxyz(3.0441, 1.9614, 12.0201)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D63 #635D17
analogous
#174363 #171D63 #371763
triadic
#171D63 #63171D #1D6317
tetradic
#171D63 #631743 #635D17 #176337
square
#171D63 #631743 #635D17 #176337
split-complementary
#171D63 #633717 #436317
monochromatic
#060719 #0B0E31 #171D63 #232C95 #2E3AC6

Accessibility & contrast

On white

15.08
#171D63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171D63
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D63#FFFFFF#000000##FFFFFF
##171D631.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A65
Deuteranopia (green-blind)
#002362
Tritanopia (blue-blind)
#00303D
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #171d63;
/* rgb */ color: rgb(23, 29, 99);
/* oklch */ color: oklch(27.9% 0.121 271.9);
Tailwind
colors: {
  custom: {
    50: '#615990',
    500: '#171d63',
    950: '#000000',
  },
}
SCSS
$custom: #171d63;
$custom-light: #615990;
$custom-dark: #000000;
JSON
{
  "hex": "#171d63",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 99
  },
  "hsl": {
    "h": 235.263,
    "s": 62.295,
    "l": 23.922
  },
  "oklch": {
    "l": 0.27942,
    "c": 0.1215,
    "h": 271.9
  },
  "luminance": 0.01962
}

Semantic roles & 50–950 ramp

primary
#171D63
secondary
#9A923C
accent
#D942E5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030D
muted
#7A787D

Preview Lab

Preview with #171D63

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

Preview Lab → · Contrast checker → · Palette generator →

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