#171C78#171C78

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

Color values

HEX#171C78
RGBrgb(23, 28, 120)
HSLhsl(237, 68%, 28%)
HSVhsv(237, 81%, 47%)
CMYKcmyk(80.8%, 76.7%, 0%, 52.9%)
CIE-LABlab(17.31, 32.59, -52.34)
CIE-LCHlch(17.31, 61.65, 301.91°)
OKLaboklab(30.09% 0.0017 -0.1516)
OKLCHoklch(30.09% 0.152 270.6)
XYZxyz(4.1576, 2.3683, 18.0037)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C78 #787317
analogous
#174C78 #171C78 #421778
triadic
#171C78 #78171C #1C7817
tetradic
#171C78 #78174C #787317 #177842
square
#171C78 #78174C #787317 #177842
split-complementary
#171C78 #784217 #4C7817
monochromatic
#05061A #0D1045 #171C78 #2128AB #323AD8

Accessibility & contrast

On white

14.25
#171C78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#171C78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171C78
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C78#FFFFFF#000000##FFFFFF
##171C781.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7B
Deuteranopia (green-blind)
#002676
Tritanopia (blue-blind)
#003748
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #171c78;
/* rgb */ color: rgb(23, 28, 120);
/* oklch */ color: oklch(30.1% 0.152 270.6);
Tailwind
colors: {
  custom: {
    50: '#6759a0',
    500: '#171c78',
    950: '#000000',
  },
}
SCSS
$custom: #171c78;
$custom-light: #6759a0;
$custom-dark: #000000;
JSON
{
  "hex": "#171c78",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 120
  },
  "hsl": {
    "h": 236.907,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30085,
    "c": 0.15158,
    "h": 270.6
  },
  "luminance": 0.02369
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #171C78

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

Preview Lab → · Contrast checker → · Palette generator →

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