#171A78#171A78

#171A78 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.8% C 0.154 H 270.9°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#171A78
RGBrgb(23, 26, 120)
HSLhsl(238, 68%, 28%)
HSVhsv(238, 81%, 47%)
CMYKcmyk(80.8%, 78.3%, 0%, 52.9%)
CIE-LABlab(16.88, 33.81, -53.06)
CIE-LCHlch(16.88, 62.92, 302.51°)
OKLaboklab(29.78% 0.0025 -0.1536)
OKLCHoklch(29.78% 0.154 270.9)
XYZxyz(4.1118, 2.2766, 17.9884)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171A78 #787517
analogous
#174A78 #171A78 #441778
triadic
#171A78 #78171A #1A7817
tetradic
#171A78 #78174A #787517 #177844
square
#171A78 #78174A #787517 #177844
split-complementary
#171A78 #784417 #4A7817
monochromatic
#05061A #0D0F45 #171A78 #2125AB #3237D8

Accessibility & contrast

On white

14.43
#171A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#171A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171A78
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171A78#FFFFFF#000000##FFFFFF
##171A781.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7B
Deuteranopia (green-blind)
#002576
Tritanopia (blue-blind)
#003648
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #171a78;
/* rgb */ color: rgb(23, 26, 120);
/* oklch */ color: oklch(29.8% 0.154 270.9);
Tailwind
colors: {
  custom: {
    50: '#6758a0',
    500: '#171a78',
    950: '#000000',
  },
}
SCSS
$custom: #171a78;
$custom-light: #6758a0;
$custom-dark: #000000;
JSON
{
  "hex": "#171a78",
  "rgb": {
    "r": 23,
    "g": 26,
    "b": 120
  },
  "hsl": {
    "h": 238.144,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29775,
    "c": 0.15366,
    "h": 270.9
  },
  "luminance": 0.02277
}

Semantic roles & 50–950 ramp

primary
#171A78
secondary
#ADAA3E
accent
#E53DEB
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #171A78

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

Preview Lab → · Contrast checker → · Palette generator →

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