#171A6B#171A6B

#171A6B is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.3% C 0.136 H 272.0°. Best body text is #FFFFFF at 15.04:1 contrast (WCAG AA passes).

Color values

HEX#171A6B
RGBrgb(23, 26, 107)
HSLhsl(238, 65%, 25%)
HSVhsv(238, 79%, 42%)
CMYKcmyk(78.5%, 75.7%, 0%, 58%)
CIE-LABlab(15.39, 29.04, -47.09)
CIE-LCHlch(15.39, 55.32, 301.66°)
OKLaboklab(28.28% 0.0048 -0.1363)
OKLCHoklch(28.28% 0.136 272)
XYZxyz(3.3757, 1.9821, 14.1118)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171A6B #6B6817
analogous
#17446B #171A6B #3E176B
triadic
#171A6B #6B171A #1A6B17
tetradic
#171A6B #6B1744 #6B6817 #176B3E
square
#171A6B #6B1744 #6B6817 #176B3E
split-complementary
#171A6B #6B3E17 #446B17
monochromatic
#050619 #0C0E39 #171A6B #22269D #2D32D0

Accessibility & contrast

On white

15.04
#171A6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171A6B
15.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171A6B#FFFFFF#000000##FFFFFF
##171A6B1.0015.041.4015.04
#FFFFFF15.041.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6D
Deuteranopia (green-blind)
#00226A
Tritanopia (blue-blind)
#003140
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #171a6b;
/* rgb */ color: rgb(23, 26, 107);
/* oklch */ color: oklch(28.3% 0.136 272.0);
Tailwind
colors: {
  custom: {
    50: '#645796',
    500: '#171a6b',
    950: '#000000',
  },
}
SCSS
$custom: #171a6b;
$custom-light: #645796;
$custom-dark: #000000;
JSON
{
  "hex": "#171a6b",
  "rgb": {
    "r": 23,
    "g": 26,
    "b": 107
  },
  "hsl": {
    "h": 237.857,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28279,
    "c": 0.13635,
    "h": 272
  },
  "luminance": 0.01982
}

Semantic roles & 50–950 ramp

primary
#171A6B
secondary
#A19D3D
accent
#E240E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #171A6B

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

Preview Lab → · Contrast checker → · Palette generator →

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