#171A6D#171A6D

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

Color values

HEX#171A6D
RGBrgb(23, 26, 109)
HSLhsl(238, 65%, 26%)
HSVhsv(238, 79%, 43%)
CMYKcmyk(78.9%, 76.1%, 0%, 57.3%)
CIE-LABlab(15.62, 29.78, -48.02)
CIE-LCHlch(15.62, 56.51, 301.81°)
OKLaboklab(28.51% 0.0045 -0.139)
OKLCHoklch(28.51% 0.139 271.8)
XYZxyz(3.4821, 2.0247, 14.6723)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171A6D #6D6A17
analogous
#17456D #171A6D #3F176D
triadic
#171A6D #6D171A #1A6D17
tetradic
#171A6D #6D1745 #6D6A17 #176D3F
square
#171A6D #6D1745 #6D6A17 #176D3F
split-complementary
#171A6D #6D3F17 #456D17
monochromatic
#050619 #0C0E3A #171A6D #2226A0 #2C32D2

Accessibility & contrast

On white

14.95
#171A6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171A6D
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171A6D#FFFFFF#000000##FFFFFF
##171A6D1.0014.951.4114.95
#FFFFFF14.951.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171a6d;
/* rgb */ color: rgb(23, 26, 109);
/* oklch */ color: oklch(28.5% 0.139 271.8);
Tailwind
colors: {
  custom: {
    50: '#645798',
    500: '#171a6d',
    950: '#000000',
  },
}
SCSS
$custom: #171a6d;
$custom-light: #645798;
$custom-dark: #000000;
JSON
{
  "hex": "#171a6d",
  "rgb": {
    "r": 23,
    "g": 26,
    "b": 109
  },
  "hsl": {
    "h": 237.907,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28505,
    "c": 0.13907,
    "h": 271.8
  },
  "luminance": 0.02025
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #171A6D

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

Preview Lab → · Contrast checker → · Palette generator →

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