#171F7C#171F7C

#171F7C is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.0% C 0.154 H 269.9°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#171F7C
RGBrgb(23, 31, 124)
HSLhsl(235, 69%, 29%)
HSVhsv(235, 81%, 49%)
CMYKcmyk(81.5%, 75%, 0%, 51.4%)
CIE-LABlab(18.44, 32.17, -53.03)
CIE-LCHlch(18.44, 62.03, 301.24°)
OKLaboklab(31.02% -0.0002 -0.1536)
OKLCHoklch(31.02% 0.154 269.9)
XYZxyz(4.4802, 2.6169, 19.3339)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F7C #7C7417
analogous
#17527C #171F7C #42177C
triadic
#171F7C #7C171F #1F7C17
tetradic
#171F7C #7C1752 #7C7417 #177C42
square
#171F7C #7C1752 #7C7417 #177C42
split-complementary
#171F7C #7C4217 #527C17
monochromatic
#05061A #0D1248 #171F7C #212CB0 #3441D9

Accessibility & contrast

On white

13.78
#171F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#171F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F7C
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F7C#FFFFFF#000000##FFFFFF
##171F7C1.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#00287A
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #171f7c;
/* rgb */ color: rgb(23, 31, 124);
/* oklch */ color: oklch(31.0% 0.154 269.9);
Tailwind
colors: {
  custom: {
    50: '#685ba3',
    500: '#171f7c',
    950: '#000000',
  },
}
SCSS
$custom: #171f7c;
$custom-light: #685ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#171f7c",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 124
  },
  "hsl": {
    "h": 235.248,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31023,
    "c": 0.15361,
    "h": 269.9
  },
  "luminance": 0.02617
}

Semantic roles & 50–950 ramp

primary
#171F7C
secondary
#B1A83E
accent
#DE3CEC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #171F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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