#171E6A#171E6A

#171E6A is a dark, vivid blue. Relative luminance 0.022; OKLCH L 28.9% C 0.130 H 271.1°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#171E6A
RGBrgb(23, 30, 106)
HSLhsl(235, 64%, 25%)
HSVhsv(235, 78%, 42%)
CMYKcmyk(78.3%, 71.7%, 0%, 58.4%)
CIE-LABlab(16.26, 25.99, -45.01)
CIE-LCHlch(16.26, 51.97, 300.00°)
OKLaboklab(28.87% 0.0026 -0.1302)
OKLCHoklch(28.87% 0.13 271.1)
XYZxyz(3.4183, 2.1510, 13.8679)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E6A #6A6317
analogous
#17476A #171E6A #3A176A
triadic
#171E6A #6A171E #1E6A17
tetradic
#171E6A #6A1747 #6A6317 #176A3A
square
#171E6A #6A1747 #6A6317 #176A3A
split-complementary
#171E6A #6A3A17 #476A17
monochromatic
#050719 #0C1038 #171E6A #222C9C #2D3ACF

Accessibility & contrast

On white

14.68
#171E6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#171E6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171E6A
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E6A#FFFFFF#000000##FFFFFF
##171E6A1.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6C
Deuteranopia (green-blind)
#002469
Tritanopia (blue-blind)
#003341
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #171e6a;
/* rgb */ color: rgb(23, 30, 106);
/* oklch */ color: oklch(28.9% 0.130 271.1);
Tailwind
colors: {
  custom: {
    50: '#635a95',
    500: '#171e6a',
    950: '#000000',
  },
}
SCSS
$custom: #171e6a;
$custom-light: #635a95;
$custom-dark: #000000;
JSON
{
  "hex": "#171e6a",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 106
  },
  "hsl": {
    "h": 234.94,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.28871,
    "c": 0.13023,
    "h": 271.1
  },
  "luminance": 0.02151
}

Semantic roles & 50–950 ramp

primary
#171E6A
secondary
#A0983D
accent
#D940E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #171E6A

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

Preview Lab → · Contrast checker → · Palette generator →

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