#171B8C#171B8C

#171B8C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.3% C 0.178 H 269.5°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#171B8C
RGBrgb(23, 27, 140)
HSLhsl(238, 72%, 32%)
HSVhsv(238, 84%, 55%)
CMYKcmyk(83.6%, 80.7%, 0%, 45.1%)
CIE-LABlab(19.47, 40.24, -61.43)
CIE-LCHlch(19.47, 73.44, 303.23°)
OKLaboklab(32.3% -0.0016 -0.1779)
OKLCHoklch(32.3% 0.178 269.5)
XYZxyz(5.4773, 2.8588, 25.0690)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B8C #8C8817
analogous
#17568C #171B8C #4E178C
triadic
#171B8C #8C171B #1B8C17
tetradic
#171B8C #8C1756 #8C8817 #178C4E
square
#171B8C #8C1756 #8C8817 #178C4E
split-complementary
#171B8C #8C4E17 #568C17
monochromatic
#060723 #0E1157 #171B8C #2025C1 #3E44DF

Accessibility & contrast

On white

13.36
#171B8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#171B8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171B8C
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B8C#FFFFFF#000000##FFFFFF
##171B8C1.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358F
Deuteranopia (green-blind)
#00298A
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #171b8c;
/* rgb */ color: rgb(23, 27, 140);
/* oklch */ color: oklch(32.3% 0.178 269.5);
Tailwind
colors: {
  custom: {
    50: '#6d5aaf',
    500: '#171b8c',
    950: '#000000',
  },
}
SCSS
$custom: #171b8c;
$custom-light: #6d5aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#171b8c",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 140
  },
  "hsl": {
    "h": 237.949,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32301,
    "c": 0.17793,
    "h": 269.5
  },
  "luminance": 0.02859
}

Semantic roles & 50–950 ramp

primary
#171B8C
secondary
#BFBB3F
accent
#E839EF
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080411
muted
#7B7980

Preview Lab

Preview with #171B8C

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

Preview Lab → · Contrast checker → · Palette generator →

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