#171A60#171A60

#171A60 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.1% C 0.121 H 273.0°. Best body text is #FFFFFF at 15.52:1 contrast (WCAG AA passes).

Color values

HEX#171A60
RGBrgb(23, 26, 96)
HSLhsl(238, 61%, 23%)
HSVhsv(238, 76%, 38%)
CMYKcmyk(76%, 72.9%, 0%, 62.4%)
CIE-LABlab(14.20, 24.85, -41.79)
CIE-LCHlch(14.20, 48.62, 300.73°)
OKLaboklab(27.06% 0.0064 -0.1208)
OKLCHoklch(27.06% 0.121 273)
XYZxyz(2.8334, 1.7652, 11.2555)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171A60 #605D17
analogous
#173E60 #171A60 #381760
triadic
#171A60 #60171A #1A6017
tetradic
#171A60 #60173E #605D17 #176038
square
#171A60 #60173E #605D17 #176038
split-complementary
#171A60 #603817 #3E6017
monochromatic
#060719 #0B0D2F #171A60 #232791 #2F35C3

Accessibility & contrast

On white

15.52
#171A60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#171A60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171A60
15.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171A60#FFFFFF#000000##FFFFFF
##171A601.0015.521.3515.52
#FFFFFF15.521.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002762
Deuteranopia (green-blind)
#00215F
Tritanopia (blue-blind)
#002D3A
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #171a60;
/* rgb */ color: rgb(23, 26, 96);
/* oklch */ color: oklch(27.1% 0.121 273.0);
Tailwind
colors: {
  custom: {
    50: '#61578e',
    500: '#171a60',
    950: '#000000',
  },
}
SCSS
$custom: #171a60;
$custom-light: #61578e;
$custom-dark: #000000;
JSON
{
  "hex": "#171a60",
  "rgb": {
    "r": 23,
    "g": 26,
    "b": 96
  },
  "hsl": {
    "h": 237.534,
    "s": 61.345,
    "l": 23.333
  },
  "oklch": {
    "l": 0.27064,
    "c": 0.12098,
    "h": 273
  },
  "luminance": 0.01765
}

Semantic roles & 50–950 ramp

primary
#171A60
secondary
#97933C
accent
#DE43E4
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #171A60

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

Preview Lab → · Contrast checker → · Palette generator →

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