#171F4F#171F4F

#171F4F is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.4% C 0.088 H 271.8°. Best body text is #FFFFFF at 15.61:1 contrast (WCAG AA passes).

Color values

HEX#171F4F
RGBrgb(23, 31, 79)
HSLhsl(231, 55%, 20%)
HSVhsv(231, 71%, 31%)
CMYKcmyk(70.9%, 60.8%, 0%, 69%)
CIE-LABlab(13.98, 14.43, -30.69)
CIE-LCHlch(13.98, 33.91, 295.18°)
OKLaboklab(26.4% 0.0028 -0.0882)
OKLCHoklch(26.4% 0.088 271.8)
XYZxyz(2.2541, 1.7264, 7.6101)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F4F #4F4717
analogous
#173B4F #171F4F #2B174F
triadic
#171F4F #4F171F #1F4F17
tetradic
#171F4F #4F173B #4F4717 #174F2B
square
#171F4F #4F173B #4F4717 #174F2B
split-complementary
#171F4F #4F2B17 #3B4F17
monochromatic
#070918 #090C20 #171F4F #25327E #3344AE

Accessibility & contrast

On white

15.61
#171F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#171F4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F4F
15.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F4F#FFFFFF#000000##FFFFFF
##171F4F1.0015.611.3515.61
#FFFFFF15.611.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002651
Deuteranopia (green-blind)
#00214E
Tritanopia (blue-blind)
#002A33
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #171f4f;
/* rgb */ color: rgb(23, 31, 79);
/* oklch */ color: oklch(26.4% 0.088 271.8);
Tailwind
colors: {
  custom: {
    50: '#5c5a81',
    500: '#171f4f',
    950: '#000000',
  },
}
SCSS
$custom: #171f4f;
$custom-light: #5c5a81;
$custom-dark: #000000;
JSON
{
  "hex": "#171f4f",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 79
  },
  "hsl": {
    "h": 231.429,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.26401,
    "c": 0.08826,
    "h": 271.8
  },
  "luminance": 0.01727
}

Semantic roles & 50–950 ramp

primary
#171F4F
secondary
#867C3C
accent
#C94ADE
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #171F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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