#171C70#171C70

#171C70 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.2% C 0.141 H 271.2°. Best body text is #FFFFFF at 14.62:1 contrast (WCAG AA passes).

Color values

HEX#171C70
RGBrgb(23, 28, 112)
HSLhsl(237, 66%, 26%)
HSVhsv(237, 79%, 44%)
CMYKcmyk(79.5%, 75%, 0%, 56.1%)
CIE-LABlab(16.42, 29.62, -48.66)
CIE-LCHlch(16.42, 56.96, 301.33°)
OKLaboklab(29.18% 0.003 -0.1409)
OKLCHoklch(29.18% 0.141 271.2)
XYZxyz(3.6922, 2.1821, 15.5527)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C70 #706B17
analogous
#174970 #171C70 #3F1770
triadic
#171C70 #70171C #1C7017
tetradic
#171C70 #701749 #706B17 #17703F
square
#171C70 #701749 #706B17 #17703F
split-complementary
#171C70 #703F17 #497017
monochromatic
#050619 #0D0F3D #171C70 #2129A3 #2D37D4

Accessibility & contrast

On white

14.62
#171C70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#171C70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171C70
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C70#FFFFFF#000000##FFFFFF
##171C701.0014.621.4414.62
#FFFFFF14.621.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D73
Deuteranopia (green-blind)
#00246E
Tritanopia (blue-blind)
#003444
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #171c70;
/* rgb */ color: rgb(23, 28, 112);
/* oklch */ color: oklch(29.2% 0.141 271.2);
Tailwind
colors: {
  custom: {
    50: '#65599a',
    500: '#171c70',
    950: '#000000',
  },
}
SCSS
$custom: #171c70;
$custom-light: #65599a;
$custom-dark: #000000;
JSON
{
  "hex": "#171c70",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 112
  },
  "hsl": {
    "h": 236.629,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29177,
    "c": 0.14089,
    "h": 271.2
  },
  "luminance": 0.02183
}

Semantic roles & 50–950 ramp

primary
#171C70
secondary
#A6A03D
accent
#DF3FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #171C70

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

Preview Lab → · Contrast checker → · Palette generator →

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