#171F7A#171F7A

#171F7A is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.8% C 0.151 H 270.0°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#171F7A
RGBrgb(23, 31, 122)
HSLhsl(235, 68%, 28%)
HSVhsv(235, 81%, 48%)
CMYKcmyk(81.1%, 74.6%, 0%, 52.2%)
CIE-LABlab(18.22, 31.43, -52.12)
CIE-LCHlch(18.22, 60.86, 301.09°)
OKLaboklab(30.8% 0 -0.151)
OKLCHoklch(30.8% 0.151 270)
XYZxyz(4.3550, 2.5668, 18.6745)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F7A #7A7217
analogous
#17507A #171F7A #40177A
triadic
#171F7A #7A171F #1F7A17
tetradic
#171F7A #7A1750 #7A7217 #177A40
square
#171F7A #7A1750 #7A7217 #177A40
split-complementary
#171F7A #7A4017 #507A17
monochromatic
#05071A #0D1247 #171F7A #212CAD #3340D9

Accessibility & contrast

On white

13.88
#171F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#171F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F7A
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F7A#FFFFFF#000000##FFFFFF
##171F7A1.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317D
Deuteranopia (green-blind)
#002878
Tritanopia (blue-blind)
#00394A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #171f7a;
/* rgb */ color: rgb(23, 31, 122);
/* oklch */ color: oklch(30.8% 0.151 270.0);
Tailwind
colors: {
  custom: {
    50: '#675ba1',
    500: '#171f7a',
    950: '#000000',
  },
}
SCSS
$custom: #171f7a;
$custom-light: #675ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#171f7a",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 122
  },
  "hsl": {
    "h": 235.152,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30799,
    "c": 0.15096,
    "h": 270
  },
  "luminance": 0.02567
}

Semantic roles & 50–950 ramp

primary
#171F7A
secondary
#AFA63E
accent
#DD3DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #171F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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