#171E79#171E79

#171E79 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.5% C 0.151 H 270.2°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#171E79
RGBrgb(23, 30, 121)
HSLhsl(236, 68%, 28%)
HSVhsv(236, 81%, 47%)
CMYKcmyk(81%, 75.2%, 0%, 52.5%)
CIE-LABlab(17.88, 31.69, -52.05)
CIE-LCHlch(17.88, 60.94, 301.34°)
OKLaboklab(30.52% 0.0006 -0.1507)
OKLCHoklch(30.52% 0.151 270.2)
XYZxyz(4.2676, 2.4907, 18.3413)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E79 #797217
analogous
#174F79 #171E79 #411779
triadic
#171E79 #79171E #1E7917
tetradic
#171E79 #79174F #797217 #177941
square
#171E79 #79174F #797217 #177941
split-complementary
#171E79 #794117 #4F7917
monochromatic
#05061A #0D1146 #171E79 #212BAC #323ED8

Accessibility & contrast

On white

14.02
#171E79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#171E79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171E79
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E79#FFFFFF#000000##FFFFFF
##171E791.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002777
Tritanopia (blue-blind)
#003849
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #171e79;
/* rgb */ color: rgb(23, 30, 121);
/* oklch */ color: oklch(30.5% 0.151 270.2);
Tailwind
colors: {
  custom: {
    50: '#675aa1',
    500: '#171e79',
    950: '#000000',
  },
}
SCSS
$custom: #171e79;
$custom-light: #675aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#171e79",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 121
  },
  "hsl": {
    "h": 235.714,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30521,
    "c": 0.15073,
    "h": 270.2
  },
  "luminance": 0.02491
}

Semantic roles & 50–950 ramp

primary
#171E79
secondary
#AEA63E
accent
#DE3DEB
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #171E79

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

Preview Lab → · Contrast checker → · Palette generator →

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