#171B78#171B78

#171B78 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.9% C 0.153 H 270.8°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#171B78
RGBrgb(23, 27, 120)
HSLhsl(238, 68%, 28%)
HSVhsv(238, 81%, 47%)
CMYKcmyk(80.8%, 77.5%, 0%, 52.9%)
CIE-LABlab(17.09, 33.21, -52.70)
CIE-LCHlch(17.09, 62.29, 302.21°)
OKLaboklab(29.93% 0.0021 -0.1526)
OKLCHoklch(29.93% 0.153 270.8)
XYZxyz(4.1343, 2.3216, 17.9959)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B78 #787417
analogous
#174B78 #171B78 #431778
triadic
#171B78 #78171B #1B7817
tetradic
#171B78 #78174B #787417 #177843
square
#171B78 #78174B #787417 #177843
split-complementary
#171B78 #784317 #4B7817
monochromatic
#05061A #0D0F45 #171B78 #2127AB #3239D8

Accessibility & contrast

On white

14.34
#171B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#171B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171B78
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B78#FFFFFF#000000##FFFFFF
##171B781.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7B
Deuteranopia (green-blind)
#002576
Tritanopia (blue-blind)
#003648
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #171b78;
/* rgb */ color: rgb(23, 27, 120);
/* oklch */ color: oklch(29.9% 0.153 270.8);
Tailwind
colors: {
  custom: {
    50: '#6758a0',
    500: '#171b78',
    950: '#000000',
  },
}
SCSS
$custom: #171b78;
$custom-light: #6758a0;
$custom-dark: #000000;
JSON
{
  "hex": "#171b78",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 120
  },
  "hsl": {
    "h": 237.526,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29928,
    "c": 0.15263,
    "h": 270.8
  },
  "luminance": 0.02322
}

Semantic roles & 50–950 ramp

primary
#171B78
secondary
#ADA93E
accent
#E43DEB
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #171B78

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

Preview Lab → · Contrast checker → · Palette generator →

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