#171B76#171B76

#171B76 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.7% C 0.150 H 270.9°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#171B76
RGBrgb(23, 27, 118)
HSLhsl(237, 67%, 28%)
HSVhsv(237, 81%, 46%)
CMYKcmyk(80.5%, 77.1%, 0%, 53.7%)
CIE-LABlab(16.86, 32.48, -51.80)
CIE-LCHlch(16.86, 61.14, 302.09°)
OKLaboklab(29.7% 0.0025 -0.15)
OKLCHoklch(29.7% 0.15 270.9)
XYZxyz(4.0142, 2.2736, 17.3633)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B76 #767217
analogous
#174A76 #171B76 #431776
triadic
#171B76 #76171B #1B7617
tetradic
#171B76 #76174A #767217 #177643
square
#171B76 #76174A #767217 #177643
split-complementary
#171B76 #764317 #4A7617
monochromatic
#05061A #0D0F43 #171B76 #2127A9 #3138D7

Accessibility & contrast

On white

14.43
#171B76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#171B76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171B76
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B76#FFFFFF#000000##FFFFFF
##171B761.0014.431.4514.43
#FFFFFF14.431.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E79
Deuteranopia (green-blind)
#002574
Tritanopia (blue-blind)
#003647
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #171b76;
/* rgb */ color: rgb(23, 27, 118);
/* oklch */ color: oklch(29.7% 0.150 270.9);
Tailwind
colors: {
  custom: {
    50: '#67589f',
    500: '#171b76',
    950: '#000000',
  },
}
SCSS
$custom: #171b76;
$custom-light: #67589f;
$custom-dark: #000000;
JSON
{
  "hex": "#171b76",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 118
  },
  "hsl": {
    "h": 237.474,
    "s": 67.376,
    "l": 27.647
  },
  "oklch": {
    "l": 0.29697,
    "c": 0.15001,
    "h": 270.9
  },
  "luminance": 0.02274
}

Semantic roles & 50–950 ramp

primary
#171B76
secondary
#ABA73E
accent
#E33EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030F
muted
#7A787E

Preview Lab

Preview with #171B76

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

Preview Lab → · Contrast checker → · Palette generator →

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