#171C6B#171C6B

#171C6B is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.6% C 0.134 H 271.6°. Best body text is #FFFFFF at 14.84:1 contrast (WCAG AA passes).

Color values

HEX#171C6B
RGBrgb(23, 28, 107)
HSLhsl(236, 65%, 25%)
HSVhsv(236, 79%, 42%)
CMYKcmyk(78.5%, 73.8%, 0%, 58%)
CIE-LABlab(15.87, 27.72, -46.30)
CIE-LCHlch(15.87, 53.97, 300.91°)
OKLaboklab(28.62% 0.0037 -0.134)
OKLCHoklch(28.62% 0.134 271.6)
XYZxyz(3.4215, 2.0738, 14.1270)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C6B #6B6617
analogous
#17466B #171C6B #3C176B
triadic
#171C6B #6B171C #1C6B17
tetradic
#171C6B #6B1746 #6B6617 #176B3C
square
#171C6B #6B1746 #6B6617 #176B3C
split-complementary
#171C6B #6B3C17 #466B17
monochromatic
#050719 #0C0F39 #171C6B #22299D #2D36D0

Accessibility & contrast

On white

14.84
#171C6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171C6B
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C6B#FFFFFF#000000##FFFFFF
##171C6B1.0014.841.4114.84
#FFFFFF14.841.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171c6b;
/* rgb */ color: rgb(23, 28, 107);
/* oklch */ color: oklch(28.6% 0.134 271.6);
Tailwind
colors: {
  custom: {
    50: '#635896',
    500: '#171c6b',
    950: '#000000',
  },
}
SCSS
$custom: #171c6b;
$custom-light: #635896;
$custom-dark: #000000;
JSON
{
  "hex": "#171c6b",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 107
  },
  "hsl": {
    "h": 236.429,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28621,
    "c": 0.13403,
    "h": 271.6
  },
  "luminance": 0.02074
}

Semantic roles & 50–950 ramp

primary
#171C6B
secondary
#A19B3D
accent
#DE40E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #171C6B

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

Preview Lab → · Contrast checker → · Palette generator →

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