#171F6F#171F6F

#171F6F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.6% C 0.136 H 270.6°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#171F6F
RGBrgb(23, 31, 111)
HSLhsl(235, 66%, 26%)
HSVhsv(235, 79%, 44%)
CMYKcmyk(79.3%, 72.1%, 0%, 56.5%)
CIE-LABlab(17.03, 27.25, -46.99)
CIE-LCHlch(17.03, 54.32, 300.11°)
OKLaboklab(29.59% 0.0014 -0.136)
OKLCHoklch(29.59% 0.136 270.6)
XYZxyz(3.7116, 2.3094, 15.2860)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F6F #6F6717
analogous
#174B6F #171F6F #3B176F
triadic
#171F6F #6F171F #1F6F17
tetradic
#171F6F #6F174B #6F6717 #176F3B
square
#171F6F #6F174B #6F6717 #176F3B
split-complementary
#171F6F #6F3B17 #4B6F17
monochromatic
#050719 #0C113C #171F6F #222DA2 #2D3CD3

Accessibility & contrast

On white

14.36
#171F6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#171F6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F6F
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F6F#FFFFFF#000000##FFFFFF
##171F6F1.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E71
Deuteranopia (green-blind)
#00266E
Tritanopia (blue-blind)
#003544
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #171f6f;
/* rgb */ color: rgb(23, 31, 111);
/* oklch */ color: oklch(29.6% 0.136 270.6);
Tailwind
colors: {
  custom: {
    50: '#645b99',
    500: '#171f6f',
    950: '#000000',
  },
}
SCSS
$custom: #171f6f;
$custom-light: #645b99;
$custom-dark: #000000;
JSON
{
  "hex": "#171f6f",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 111
  },
  "hsl": {
    "h": 234.545,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.2959,
    "c": 0.13601,
    "h": 270.6
  },
  "luminance": 0.0231
}

Semantic roles & 50–950 ramp

primary
#171F6F
secondary
#A59B3D
accent
#D93FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #171F6F

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

Preview Lab → · Contrast checker → · Palette generator →

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