#171B8E#171B8E

#171B8E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.180 H 269.4°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#171B8E
RGBrgb(23, 27, 142)
HSLhsl(238, 72%, 32%)
HSVhsv(238, 84%, 56%)
CMYKcmyk(83.8%, 81%, 0%, 44.3%)
CIE-LABlab(19.71, 40.92, -62.27)
CIE-LCHlch(19.71, 74.51, 303.31°)
OKLaboklab(32.54% -0.002 -0.1804)
OKLCHoklch(32.54% 0.18 269.4)
XYZxyz(5.6261, 2.9184, 25.8527)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B8E #8E8A17
analogous
#17578E #171B8E #4E178E
triadic
#171B8E #8E171B #1B8E17
tetradic
#171B8E #8E1757 #8E8A17 #178E4E
square
#171B8E #8E1757 #8E8A17 #178E4E
split-complementary
#171B8E #8E4E17 #578E17
monochromatic
#060725 #0E1159 #171B8E #2025C3 #3F45E0

Accessibility & contrast

On white

13.26
#171B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#171B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171B8E
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B8E#FFFFFF#000000##FFFFFF
##171B8E1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003691
Deuteranopia (green-blind)
#00298C
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #171b8e;
/* rgb */ color: rgb(23, 27, 142);
/* oklch */ color: oklch(32.5% 0.180 269.4);
Tailwind
colors: {
  custom: {
    50: '#6d5ab0',
    500: '#171b8e',
    950: '#000000',
  },
}
SCSS
$custom: #171b8e;
$custom-light: #6d5ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#171b8e",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 142
  },
  "hsl": {
    "h": 237.983,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.32543,
    "c": 0.18037,
    "h": 269.4
  },
  "luminance": 0.02919
}

Semantic roles & 50–950 ramp

primary
#171B8E
secondary
#C0BC40
accent
#E939EF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #171B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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