#171E6C#171E6C

#171E6C is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.1% C 0.133 H 271.0°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#171E6C
RGBrgb(23, 30, 108)
HSLhsl(235, 65%, 26%)
HSVhsv(235, 79%, 42%)
CMYKcmyk(78.7%, 72.2%, 0%, 57.6%)
CIE-LABlab(16.47, 26.76, -45.97)
CIE-LCHlch(16.47, 53.19, 300.21°)
OKLaboklab(29.09% 0.0024 -0.133)
OKLCHoklch(29.09% 0.133 271)
XYZxyz(3.5235, 2.1930, 14.4221)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E6C #6C6517
analogous
#17486C #171E6C #3A176C
triadic
#171E6C #6C171E #1E6C17
tetradic
#171E6C #6C1748 #6C6517 #176C3A
square
#171E6C #6C1748 #6C6517 #176C3A
split-complementary
#171E6C #6C3A17 #486C17
monochromatic
#050719 #0C103A #171E6C #222C9E #2C3AD1

Accessibility & contrast

On white

14.60
#171E6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#171E6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171E6C
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E6C#FFFFFF#000000##FFFFFF
##171E6C1.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6E
Deuteranopia (green-blind)
#00256B
Tritanopia (blue-blind)
#003342
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #171e6c;
/* rgb */ color: rgb(23, 30, 108);
/* oklch */ color: oklch(29.1% 0.133 271.0);
Tailwind
colors: {
  custom: {
    50: '#645a97',
    500: '#171e6c',
    950: '#000000',
  },
}
SCSS
$custom: #171e6c;
$custom-light: #645a97;
$custom-dark: #000000;
JSON
{
  "hex": "#171e6c",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 108
  },
  "hsl": {
    "h": 235.059,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29086,
    "c": 0.13303,
    "h": 271
  },
  "luminance": 0.02193
}

Semantic roles & 50–950 ramp

primary
#171E6C
secondary
#A29A3D
accent
#DA40E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #171E6C

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

Preview Lab → · Contrast checker → · Palette generator →

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