#171D78#171D78

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

Color values

HEX#171D78
RGBrgb(23, 29, 120)
HSLhsl(236, 68%, 28%)
HSVhsv(236, 81%, 47%)
CMYKcmyk(80.8%, 75.8%, 0%, 52.9%)
CIE-LABlab(17.54, 31.96, -51.97)
CIE-LCHlch(17.54, 61.01, 301.59°)
OKLaboklab(30.25% 0.0012 -0.1505)
OKLCHoklch(30.25% 0.151 270.5)
XYZxyz(4.1817, 2.4165, 18.0117)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D78 #787217
analogous
#174D78 #171D78 #421778
triadic
#171D78 #78171D #1D7817
tetradic
#171D78 #78174D #787217 #177842
square
#171D78 #78174D #787217 #177842
split-complementary
#171D78 #784217 #4D7817
monochromatic
#05061A #0D1145 #171D78 #2129AB #323CD8

Accessibility & contrast

On white

14.16
#171D78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171D78
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D78#FFFFFF#000000##FFFFFF
##171D781.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171d78;
/* rgb */ color: rgb(23, 29, 120);
/* oklch */ color: oklch(30.2% 0.150 270.5);
Tailwind
colors: {
  custom: {
    50: '#675aa0',
    500: '#171d78',
    950: '#000000',
  },
}
SCSS
$custom: #171d78;
$custom-light: #675aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#171d78",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 120
  },
  "hsl": {
    "h": 236.289,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30245,
    "c": 0.1505,
    "h": 270.5
  },
  "luminance": 0.02417
}

Semantic roles & 50–950 ramp

primary
#171D78
secondary
#ADA63E
accent
#E03DEB
background
#F6F5FA
surface
#EBE9F3
border
#C6C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #171D78

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

Preview Lab → · Contrast checker → · Palette generator →

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