#171D6B#171D6B

#171D6B is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.8% C 0.133 H 271.3°. Best body text is #FFFFFF at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#171D6B
RGBrgb(23, 29, 107)
HSLhsl(236, 65%, 25%)
HSVhsv(236, 79%, 42%)
CMYKcmyk(78.5%, 72.9%, 0%, 58%)
CIE-LABlab(16.12, 27.05, -45.90)
CIE-LCHlch(16.12, 53.28, 300.52°)
OKLaboklab(28.8% 0.0031 -0.1328)
OKLCHoklch(28.8% 0.133 271.3)
XYZxyz(3.4457, 2.1221, 14.1351)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D6B #6B6517
analogous
#17476B #171D6B #3B176B
triadic
#171D6B #6B171D #1D6B17
tetradic
#171D6B #6B1747 #6B6517 #176B3B
square
#171D6B #6B1747 #6B6517 #176B3B
split-complementary
#171D6B #6B3B17 #476B17
monochromatic
#050719 #0C0F39 #171D6B #222B9D #2D38D0

Accessibility & contrast

On white

14.74
#171D6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171D6B
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D6B#FFFFFF#000000##FFFFFF
##171D6B1.0014.741.4214.74
#FFFFFF14.741.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171d6b;
/* rgb */ color: rgb(23, 29, 107);
/* oklch */ color: oklch(28.8% 0.133 271.3);
Tailwind
colors: {
  custom: {
    50: '#635996',
    500: '#171d6b',
    950: '#000000',
  },
}
SCSS
$custom: #171d6b;
$custom-light: #635996;
$custom-dark: #000000;
JSON
{
  "hex": "#171d6b",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 107
  },
  "hsl": {
    "h": 235.714,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28798,
    "c": 0.13285,
    "h": 271.3
  },
  "luminance": 0.02122
}

Semantic roles & 50–950 ramp

primary
#171D6B
secondary
#A19A3D
accent
#DC40E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #171D6B

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

Preview Lab → · Contrast checker → · Palette generator →

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