#171A6E#171A6E

#171A6E is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.6% C 0.140 H 271.8°. Best body text is #FFFFFF at 14.90:1 contrast (WCAG AA passes).

Color values

HEX#171A6E
RGBrgb(23, 26, 110)
HSLhsl(238, 65%, 26%)
HSVhsv(238, 79%, 43%)
CMYKcmyk(79.1%, 76.4%, 0%, 56.9%)
CIE-LABlab(15.73, 30.16, -48.49)
CIE-LCHlch(15.73, 57.10, 301.88°)
OKLaboklab(28.62% 0.0043 -0.1404)
OKLCHoklch(28.62% 0.14 271.8)
XYZxyz(3.5363, 2.0464, 14.9574)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171A6E #6E6B17
analogous
#17456E #171A6E #3F176E
triadic
#171A6E #6E171A #1A6E17
tetradic
#171A6E #6E1745 #6E6B17 #176E3F
square
#171A6E #6E1745 #6E6B17 #176E3F
split-complementary
#171A6E #6E3F17 #456E17
monochromatic
#050619 #0C0E3B #171A6E #2226A1 #2C32D3

Accessibility & contrast

On white

14.90
#171A6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#171A6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171A6E
14.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171A6E#FFFFFF#000000##FFFFFF
##171A6E1.0014.901.4114.90
#FFFFFF14.901.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B70
Deuteranopia (green-blind)
#00236C
Tritanopia (blue-blind)
#003242
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #171a6e;
/* rgb */ color: rgb(23, 26, 110);
/* oklch */ color: oklch(28.6% 0.140 271.8);
Tailwind
colors: {
  custom: {
    50: '#655799',
    500: '#171a6e',
    950: '#000000',
  },
}
SCSS
$custom: #171a6e;
$custom-light: #655799;
$custom-dark: #000000;
JSON
{
  "hex": "#171a6e",
  "rgb": {
    "r": 23,
    "g": 26,
    "b": 110
  },
  "hsl": {
    "h": 237.931,
    "s": 65.414,
    "l": 26.078
  },
  "oklch": {
    "l": 0.28619,
    "c": 0.14043,
    "h": 271.8
  },
  "luminance": 0.02047
}

Semantic roles & 50–950 ramp

primary
#171A6E
secondary
#A4A03D
accent
#E33FE8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #171A6E

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

Preview Lab → · Contrast checker → · Palette generator →

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