#171C6C#171C6C

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

Color values

HEX#171C6C
RGBrgb(23, 28, 108)
HSLhsl(236, 65%, 26%)
HSVhsv(236, 79%, 42%)
CMYKcmyk(78.7%, 74.1%, 0%, 57.6%)
CIE-LABlab(15.98, 28.10, -46.78)
CIE-LCHlch(15.98, 54.57, 301.00°)
OKLaboklab(28.73% 0.0035 -0.1354)
OKLCHoklch(28.73% 0.135 271.5)
XYZxyz(3.4745, 2.0950, 14.4057)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C6C #6C6717
analogous
#17466C #171C6C #3C176C
triadic
#171C6C #6C171C #1C6C17
tetradic
#171C6C #6C1746 #6C6717 #176C3C
square
#171C6C #6C1746 #6C6717 #176C3C
split-complementary
#171C6C #6C3C17 #466C17
monochromatic
#050719 #0C0F3A #171C6C #22299E #2C36D1

Accessibility & contrast

On white

14.80
#171C6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#171C6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171C6C
14.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C6C#FFFFFF#000000##FFFFFF
##171C6C1.0014.801.4214.80
#FFFFFF14.801.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6E
Deuteranopia (green-blind)
#00246B
Tritanopia (blue-blind)
#003241
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #171c6c;
/* rgb */ color: rgb(23, 28, 108);
/* oklch */ color: oklch(28.7% 0.135 271.5);
Tailwind
colors: {
  custom: {
    50: '#645897',
    500: '#171c6c',
    950: '#000000',
  },
}
SCSS
$custom: #171c6c;
$custom-light: #645897;
$custom-dark: #000000;
JSON
{
  "hex": "#171c6c",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 108
  },
  "hsl": {
    "h": 236.471,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28731,
    "c": 0.13542,
    "h": 271.5
  },
  "luminance": 0.02095
}

Semantic roles & 50–950 ramp

primary
#171C6C
secondary
#A29C3D
accent
#DE40E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #171C6C

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

Preview Lab → · Contrast checker → · Palette generator →

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