#171F6C#171F6C

#171F6C is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.3% C 0.132 H 270.8°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#171F6C
RGBrgb(23, 31, 108)
HSLhsl(234, 65%, 26%)
HSVhsv(234, 79%, 42%)
CMYKcmyk(78.7%, 71.3%, 0%, 57.6%)
CIE-LABlab(16.72, 26.08, -45.55)
CIE-LCHlch(16.72, 52.49, 299.79°)
OKLaboklab(29.27% 0.0018 -0.1318)
OKLCHoklch(29.27% 0.132 270.8)
XYZxyz(3.5492, 2.2445, 14.4306)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F6C #6C6417
analogous
#17496C #171F6C #39176C
triadic
#171F6C #6C171F #1F6C17
tetradic
#171F6C #6C1749 #6C6417 #176C39
square
#171F6C #6C1749 #6C6417 #176C39
split-complementary
#171F6C #6C3917 #496C17
monochromatic
#050719 #0C113A #171F6C #222D9E #2C3CD1

Accessibility & contrast

On white

14.49
#171F6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#171F6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F6C
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F6C#FFFFFF#000000##FFFFFF
##171F6C1.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171f6c;
/* rgb */ color: rgb(23, 31, 108);
/* oklch */ color: oklch(29.3% 0.132 270.8);
Tailwind
colors: {
  custom: {
    50: '#635b97',
    500: '#171f6c',
    950: '#000000',
  },
}
SCSS
$custom: #171f6c;
$custom-light: #635b97;
$custom-dark: #000000;
JSON
{
  "hex": "#171f6c",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 108
  },
  "hsl": {
    "h": 234.353,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29268,
    "c": 0.13181,
    "h": 270.8
  },
  "luminance": 0.02245
}

Semantic roles & 50–950 ramp

primary
#171F6C
secondary
#A2983D
accent
#D840E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #171F6C

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

Preview Lab → · Contrast checker → · Palette generator →

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