#171F4E#171F4E

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

Color values

HEX#171F4E
RGBrgb(23, 31, 78)
HSLhsl(231, 54%, 20%)
HSVhsv(231, 71%, 31%)
CMYKcmyk(70.5%, 60.3%, 0%, 69.4%)
CIE-LABlab(13.90, 14.02, -30.14)
CIE-LCHlch(13.90, 33.24, 294.94°)
OKLaboklab(26.31% 0.0028 -0.0866)
OKLCHoklch(26.31% 0.087 271.8)
XYZxyz(2.2180, 1.7120, 7.4198)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F4E #4E4617
analogous
#173A4E #171F4E #2B174E
triadic
#171F4E #4E171F #1F4E17
tetradic
#171F4E #4E173A #4E4617 #174E2B
square
#171F4E #4E173A #4E4617 #174E2B
split-complementary
#171F4E #4E2B17 #3A4E17
monochromatic
#070918 #090C1F #171F4E #25327D #3345AD

Accessibility & contrast

On white

15.64
#171F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#171F4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F4E
15.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F4E#FFFFFF#000000##FFFFFF
##171F4E1.0015.641.3415.64
#FFFFFF15.641.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002650
Deuteranopia (green-blind)
#00214D
Tritanopia (blue-blind)
#002A33
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #171f4e;
/* rgb */ color: rgb(23, 31, 78);
/* oklch */ color: oklch(26.3% 0.087 271.8);
Tailwind
colors: {
  custom: {
    50: '#5b5a80',
    500: '#171f4e',
    950: '#000000',
  },
}
SCSS
$custom: #171f4e;
$custom-light: #5b5a80;
$custom-dark: #000000;
JSON
{
  "hex": "#171f4e",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 78
  },
  "hsl": {
    "h": 231.273,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26311,
    "c": 0.08664,
    "h": 271.8
  },
  "luminance": 0.01712
}

Semantic roles & 50–950 ramp

primary
#171F4E
secondary
#857A3C
accent
#C84ADE
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #171F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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