#171A79#171A79

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

Color values

HEX#171A79
RGBrgb(23, 26, 121)
HSLhsl(238, 68%, 28%)
HSVhsv(238, 81%, 47%)
CMYKcmyk(81%, 78.5%, 0%, 52.5%)
CIE-LABlab(16.99, 34.17, -53.51)
CIE-LCHlch(16.99, 63.49, 302.57°)
OKLaboklab(29.89% 0.0023 -0.1549)
OKLCHoklch(29.89% 0.155 270.9)
XYZxyz(4.1728, 2.3010, 18.3097)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171A79 #797617
analogous
#174B79 #171A79 #451779
triadic
#171A79 #79171A #1A7917
tetradic
#171A79 #79174B #797617 #177945
square
#171A79 #79174B #797617 #177945
split-complementary
#171A79 #794517 #4B7917
monochromatic
#05061A #0D0F46 #171A79 #2125AC #3237D8

Accessibility & contrast

On white

14.38
#171A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171A79
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171A79#FFFFFF#000000##FFFFFF
##171A791.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171a79;
/* rgb */ color: rgb(23, 26, 121);
/* oklch */ color: oklch(29.9% 0.155 270.9);
Tailwind
colors: {
  custom: {
    50: '#6858a1',
    500: '#171a79',
    950: '#000000',
  },
}
SCSS
$custom: #171a79;
$custom-light: #6858a1;
$custom-dark: #000000;
JSON
{
  "hex": "#171a79",
  "rgb": {
    "r": 23,
    "g": 26,
    "b": 121
  },
  "hsl": {
    "h": 238.163,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.29893,
    "c": 0.15496,
    "h": 270.9
  },
  "luminance": 0.02301
}

Semantic roles & 50–950 ramp

primary
#171A79
secondary
#AEAB3E
accent
#E63DEB
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #171A79

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

Preview Lab → · Contrast checker → · Palette generator →

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