#171C79#171C79

#171C79 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.2% C 0.153 H 270.6°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#171C79
RGBrgb(23, 28, 121)
HSLhsl(237, 68%, 28%)
HSVhsv(237, 81%, 47%)
CMYKcmyk(81%, 76.9%, 0%, 52.5%)
CIE-LABlab(17.43, 32.95, -52.79)
CIE-LCHlch(17.43, 62.23, 301.97°)
OKLaboklab(30.2% 0.0015 -0.1529)
OKLCHoklch(30.2% 0.153 270.6)
XYZxyz(4.2186, 2.3927, 18.3249)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C79 #797417
analogous
#174D79 #171C79 #431779
triadic
#171C79 #79171C #1C7917
tetradic
#171C79 #79174D #797417 #177943
square
#171C79 #79174D #797417 #177943
split-complementary
#171C79 #794317 #4D7917
monochromatic
#05061A #0D1046 #171C79 #2128AC #323BD8

Accessibility & contrast

On white

14.20
#171C79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#171C79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171C79
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C79#FFFFFF#000000##FFFFFF
##171C791.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307C
Deuteranopia (green-blind)
#002677
Tritanopia (blue-blind)
#003749
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #171c79;
/* rgb */ color: rgb(23, 28, 121);
/* oklch */ color: oklch(30.2% 0.153 270.6);
Tailwind
colors: {
  custom: {
    50: '#6759a1',
    500: '#171c79',
    950: '#000000',
  },
}
SCSS
$custom: #171c79;
$custom-light: #6759a1;
$custom-dark: #000000;
JSON
{
  "hex": "#171c79",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 121
  },
  "hsl": {
    "h": 236.939,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.302,
    "c": 0.15289,
    "h": 270.6
  },
  "luminance": 0.02393
}

Semantic roles & 50–950 ramp

primary
#171C79
secondary
#AEA83E
accent
#E23DEB
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #171C79

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

Preview Lab → · Contrast checker → · Palette generator →

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