#171B81#171B81

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

Color values

HEX#171B81
RGBrgb(23, 27, 129)
HSLhsl(238, 70%, 30%)
HSVhsv(238, 82%, 51%)
CMYKcmyk(82.2%, 79.1%, 0%, 49.4%)
CIE-LABlab(18.15, 36.43, -56.70)
CIE-LCHlch(18.15, 67.39, 302.72°)
OKLaboklab(30.98% 0.0005 -0.1642)
OKLCHoklch(30.98% 0.164 270.2)
XYZxyz(4.7064, 2.5505, 21.0089)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B81 #817D17
analogous
#175081 #171B81 #481781
triadic
#171B81 #81171B #1B8117
tetradic
#171B81 #811750 #817D17 #178148
square
#171B81 #811750 #817D17 #178148
split-complementary
#171B81 #814817 #508117
monochromatic
#05051A #0E104D #171B81 #2026B5 #373DDB

Accessibility & contrast

On white

13.91
#171B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171B81
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B81#FFFFFF#000000##FFFFFF
##171B811.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#00277F
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #171b81;
/* rgb */ color: rgb(23, 27, 129);
/* oklch */ color: oklch(31.0% 0.164 270.2);
Tailwind
colors: {
  custom: {
    50: '#6a59a7',
    500: '#171b81',
    950: '#000000',
  },
}
SCSS
$custom: #171b81;
$custom-light: #6a59a7;
$custom-dark: #000000;
JSON
{
  "hex": "#171b81",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 129
  },
  "hsl": {
    "h": 237.736,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.30984,
    "c": 0.16422,
    "h": 270.2
  },
  "luminance": 0.02551
}

Semantic roles & 50–950 ramp

primary
#171B81
secondary
#B5B13E
accent
#E63BED
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#080310
muted
#7A787F

Preview Lab

Preview with #171B81

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

Preview Lab → · Contrast checker → · Palette generator →

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