#171D79#171D79

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

Color values

HEX#171D79
RGBrgb(23, 29, 121)
HSLhsl(236, 68%, 28%)
HSVhsv(236, 81%, 47%)
CMYKcmyk(81%, 76%, 0%, 52.5%)
CIE-LABlab(17.65, 32.33, -52.42)
CIE-LCHlch(17.65, 61.59, 301.66°)
OKLaboklab(30.36% 0.0011 -0.1518)
OKLCHoklch(30.36% 0.152 270.4)
XYZxyz(4.2427, 2.4409, 18.3330)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D79 #797317
analogous
#174E79 #171D79 #421779
triadic
#171D79 #79171D #1D7917
tetradic
#171D79 #79174E #797317 #177942
square
#171D79 #79174E #797317 #177942
split-complementary
#171D79 #794217 #4E7917
monochromatic
#05061A #0D1146 #171D79 #2129AC #323CD8

Accessibility & contrast

On white

14.11
#171D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171D79
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D79#FFFFFF#000000##FFFFFF
##171D791.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171d79;
/* rgb */ color: rgb(23, 29, 121);
/* oklch */ color: oklch(30.4% 0.152 270.4);
Tailwind
colors: {
  custom: {
    50: '#675aa1',
    500: '#171d79',
    950: '#000000',
  },
}
SCSS
$custom: #171d79;
$custom-light: #675aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#171d79",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 121
  },
  "hsl": {
    "h": 236.327,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30359,
    "c": 0.15182,
    "h": 270.4
  },
  "luminance": 0.02441
}

Semantic roles & 50–950 ramp

primary
#171D79
secondary
#AEA73E
accent
#E03DEB
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #171D79

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

Preview Lab → · Contrast checker → · Palette generator →

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