#171C63#171C63

#171C63 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 27.8% C 0.123 H 272.2°. Best body text is #FFFFFF at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#171C63
RGBrgb(23, 28, 99)
HSLhsl(236, 62%, 24%)
HSVhsv(236, 77%, 39%)
CMYKcmyk(76.8%, 71.7%, 0%, 61.2%)
CIE-LABlab(15.03, 24.64, -42.43)
CIE-LCHlch(15.03, 49.06, 300.14°)
OKLaboklab(27.75% 0.0047 -0.1227)
OKLCHoklch(27.75% 0.123 272.2)
XYZxyz(3.0200, 1.9132, 12.0121)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C63 #635E17
analogous
#174263 #171C63 #381763
triadic
#171C63 #63171C #1C6317
tetradic
#171C63 #631742 #635E17 #176338
square
#171C63 #631742 #635E17 #176338
split-complementary
#171C63 #633817 #426317
monochromatic
#060719 #0B0E31 #171C63 #232A95 #2E38C6

Accessibility & contrast

On white

15.19
#171C63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#171C63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171C63
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C63#FFFFFF#000000##FFFFFF
##171C631.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002965
Deuteranopia (green-blind)
#002262
Tritanopia (blue-blind)
#002F3D
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #171c63;
/* rgb */ color: rgb(23, 28, 99);
/* oklch */ color: oklch(27.8% 0.123 272.2);
Tailwind
colors: {
  custom: {
    50: '#615890',
    500: '#171c63',
    950: '#000000',
  },
}
SCSS
$custom: #171c63;
$custom-light: #615890;
$custom-dark: #000000;
JSON
{
  "hex": "#171c63",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 99
  },
  "hsl": {
    "h": 236.053,
    "s": 62.295,
    "l": 23.922
  },
  "oklch": {
    "l": 0.27754,
    "c": 0.12277,
    "h": 272.2
  },
  "luminance": 0.01914
}

Semantic roles & 50–950 ramp

primary
#171C63
secondary
#9A933C
accent
#DB42E5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030D
muted
#7A787D

Preview Lab

Preview with #171C63

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

Preview Lab → · Contrast checker → · Palette generator →

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