#171F81#171F81

#171F81 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.6% C 0.160 H 269.6°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#171F81
RGBrgb(23, 31, 129)
HSLhsl(235, 70%, 30%)
HSVhsv(235, 82%, 51%)
CMYKcmyk(82.2%, 76%, 0%, 49.4%)
CIE-LABlab(19.00, 34.01, -55.29)
CIE-LCHlch(19.00, 64.91, 301.60°)
OKLaboklab(31.59% -0.001 -0.1602)
OKLCHoklch(31.59% 0.16 269.6)
XYZxyz(4.8044, 2.7466, 21.0415)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F81 #817917
analogous
#175481 #171F81 #441781
triadic
#171F81 #81171F #1F8117
tetradic
#171F81 #811754 #817917 #178144
square
#171F81 #811754 #817917 #178144
split-complementary
#171F81 #814417 #548117
monochromatic
#05061A #0E134D #171F81 #202BB5 #3743DB

Accessibility & contrast

On white

13.55
#171F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#171F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F81
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F81#FFFFFF#000000##FFFFFF
##171F811.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#00297F
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #171f81;
/* rgb */ color: rgb(23, 31, 129);
/* oklch */ color: oklch(31.6% 0.160 269.6);
Tailwind
colors: {
  custom: {
    50: '#695ba7',
    500: '#171f81',
    950: '#000000',
  },
}
SCSS
$custom: #171f81;
$custom-light: #695ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#171f81",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 129
  },
  "hsl": {
    "h": 235.472,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3159,
    "c": 0.16016,
    "h": 269.6
  },
  "luminance": 0.02747
}

Semantic roles & 50–950 ramp

primary
#171F81
secondary
#B5AC3E
accent
#DF3BED
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#080410
muted
#7A797F

Preview Lab

Preview with #171F81

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

Preview Lab → · Contrast checker → · Palette generator →

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