#171A6C#171A6C

#171A6C is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.4% C 0.138 H 271.9°. Best body text is #FFFFFF at 14.99:1 contrast (WCAG AA passes).

Color values

HEX#171A6C
RGBrgb(23, 26, 108)
HSLhsl(238, 65%, 26%)
HSVhsv(238, 79%, 42%)
CMYKcmyk(78.7%, 75.9%, 0%, 57.6%)
CIE-LABlab(15.50, 29.41, -47.56)
CIE-LCHlch(15.50, 55.92, 301.74°)
OKLaboklab(28.39% 0.0046 -0.1376)
OKLCHoklch(28.39% 0.138 271.9)
XYZxyz(3.4286, 2.0033, 14.3904)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171A6C #6C6917
analogous
#17446C #171A6C #3E176C
triadic
#171A6C #6C171A #1A6C17
tetradic
#171A6C #6C1744 #6C6917 #176C3E
square
#171A6C #6C1744 #6C6917 #176C3E
split-complementary
#171A6C #6C3E17 #446C17
monochromatic
#050619 #0C0E3A #171A6C #22269E #2C32D1

Accessibility & contrast

On white

14.99
#171A6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#171A6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171A6C
14.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171A6C#FFFFFF#000000##FFFFFF
##171A6C1.0014.991.4014.99
#FFFFFF14.991.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6E
Deuteranopia (green-blind)
#00236B
Tritanopia (blue-blind)
#003141
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #171a6c;
/* rgb */ color: rgb(23, 26, 108);
/* oklch */ color: oklch(28.4% 0.138 271.9);
Tailwind
colors: {
  custom: {
    50: '#645797',
    500: '#171a6c',
    950: '#000000',
  },
}
SCSS
$custom: #171a6c;
$custom-light: #645797;
$custom-dark: #000000;
JSON
{
  "hex": "#171a6c",
  "rgb": {
    "r": 23,
    "g": 26,
    "b": 108
  },
  "hsl": {
    "h": 237.882,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28392,
    "c": 0.13772,
    "h": 271.9
  },
  "luminance": 0.02004
}

Semantic roles & 50–950 ramp

primary
#171A6C
secondary
#A29E3D
accent
#E240E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #171A6C

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

Preview Lab → · Contrast checker → · Palette generator →

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