#171E78#171E78

#171E78 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.4% C 0.149 H 270.3°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#171E78
RGBrgb(23, 30, 120)
HSLhsl(236, 68%, 28%)
HSVhsv(236, 81%, 47%)
CMYKcmyk(80.8%, 75%, 0%, 52.9%)
CIE-LABlab(17.77, 31.32, -51.59)
CIE-LCHlch(17.77, 60.35, 301.26°)
OKLaboklab(30.41% 0.0008 -0.1494)
OKLCHoklch(30.41% 0.149 270.3)
XYZxyz(4.2066, 2.4663, 18.0200)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E78 #787117
analogous
#174E78 #171E78 #401778
triadic
#171E78 #78171E #1E7817
tetradic
#171E78 #78174E #787117 #177840
square
#171E78 #78174E #787117 #177840
split-complementary
#171E78 #784017 #4E7817
monochromatic
#05061A #0D1145 #171E78 #212BAB #323ED8

Accessibility & contrast

On white

14.06
#171E78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#171E78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171E78
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E78#FFFFFF#000000##FFFFFF
##171E781.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307B
Deuteranopia (green-blind)
#002776
Tritanopia (blue-blind)
#003849
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #171e78;
/* rgb */ color: rgb(23, 30, 120);
/* oklch */ color: oklch(30.4% 0.149 270.3);
Tailwind
colors: {
  custom: {
    50: '#675aa0',
    500: '#171e78',
    950: '#000000',
  },
}
SCSS
$custom: #171e78;
$custom-light: #675aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#171e78",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 120
  },
  "hsl": {
    "h": 235.67,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30409,
    "c": 0.1494,
    "h": 270.3
  },
  "luminance": 0.02467
}

Semantic roles & 50–950 ramp

primary
#171E78
secondary
#ADA53E
accent
#DE3DEB
background
#F6F5FA
surface
#EBE9F3
border
#C6C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #171E78

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

Preview Lab → · Contrast checker → · Palette generator →

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