#171F49#171F49

#171F49 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.9% C 0.078 H 271.7°. Best body text is #FFFFFF at 15.81:1 contrast (WCAG AA passes).

Color values

HEX#171F49
RGBrgb(23, 31, 73)
HSLhsl(230, 52%, 19%)
HSVhsv(230, 68%, 29%)
CMYKcmyk(68.5%, 57.5%, 0%, 71.4%)
CIE-LABlab(13.49, 11.97, -27.37)
CIE-LCHlch(13.49, 29.87, 293.62°)
OKLaboklab(25.88% 0.0024 -0.0784)
OKLCHoklch(25.88% 0.078 271.7)
XYZxyz(2.0455, 1.6430, 6.5114)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F49 #494117
analogous
#173849 #171F49 #281749
triadic
#171F49 #49171F #1F4917
tetradic
#171F49 #491738 #494117 #174928
square
#171F49 #491738 #494117 #174928
split-complementary
#171F49 #492817 #384917
monochromatic
#070A17 #080B1A #171F49 #263378 #3447A6

Accessibility & contrast

On white

15.81
#171F49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#171F49 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F49
15.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F49#FFFFFF#000000##FFFFFF
##171F491.0015.811.3315.81
#FFFFFF15.811.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07254A
Deuteranopia (green-blind)
#002048
Tritanopia (blue-blind)
#002930
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #171f49;
/* rgb */ color: rgb(23, 31, 73);
/* oklch */ color: oklch(25.9% 0.078 271.7);
Tailwind
colors: {
  custom: {
    50: '#5a5a7c',
    500: '#171f49',
    950: '#000000',
  },
}
SCSS
$custom: #171f49;
$custom-light: #5a5a7c;
$custom-dark: #000000;
JSON
{
  "hex": "#171f49",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 73
  },
  "hsl": {
    "h": 230.4,
    "s": 52.083,
    "l": 18.824
  },
  "oklch": {
    "l": 0.25876,
    "c": 0.07847,
    "h": 271.7
  },
  "luminance": 0.01643
}

Semantic roles & 50–950 ramp

primary
#171F49
secondary
#80753C
accent
#C54CDC
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#040309
muted
#79787B

Preview Lab

Preview with #171F49

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

Preview Lab → · Contrast checker → · Palette generator →

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