#171A6F#171A6F

#171A6F is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.7% C 0.142 H 271.7°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#171A6F
RGBrgb(23, 26, 111)
HSLhsl(238, 66%, 26%)
HSVhsv(238, 79%, 44%)
CMYKcmyk(79.3%, 76.6%, 0%, 56.5%)
CIE-LABlab(15.84, 30.53, -48.96)
CIE-LCHlch(15.84, 57.69, 301.95°)
OKLaboklab(28.73% 0.0041 -0.1417)
OKLCHoklch(28.73% 0.142 271.7)
XYZxyz(3.5910, 2.0683, 15.2458)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171A6F #6F6C17
analogous
#17466F #171A6F #40176F
triadic
#171A6F #6F171A #1A6F17
tetradic
#171A6F #6F1746 #6F6C17 #176F40
square
#171A6F #6F1746 #6F6C17 #176F40
split-complementary
#171A6F #6F4017 #466F17
monochromatic
#050619 #0C0E3C #171A6F #2226A2 #2D33D3

Accessibility & contrast

On white

14.85
#171A6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171A6F
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171A6F#FFFFFF#000000##FFFFFF
##171A6F1.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C71
Deuteranopia (green-blind)
#00236D
Tritanopia (blue-blind)
#003243
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #171a6f;
/* rgb */ color: rgb(23, 26, 111);
/* oklch */ color: oklch(28.7% 0.142 271.7);
Tailwind
colors: {
  custom: {
    50: '#655799',
    500: '#171a6f',
    950: '#000000',
  },
}
SCSS
$custom: #171a6f;
$custom-light: #655799;
$custom-dark: #000000;
JSON
{
  "hex": "#171a6f",
  "rgb": {
    "r": 23,
    "g": 26,
    "b": 111
  },
  "hsl": {
    "h": 237.955,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.28733,
    "c": 0.14177,
    "h": 271.7
  },
  "luminance": 0.02069
}

Semantic roles & 50–950 ramp

primary
#171A6F
secondary
#A5A13D
accent
#E33FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #171A6F

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

Preview Lab → · Contrast checker → · Palette generator →

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