#171B71#171B71

#171B71 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.1% C 0.143 H 271.3°. Best body text is #FFFFFF at 14.67:1 contrast (WCAG AA passes).

Color values

HEX#171B71
RGBrgb(23, 27, 113)
HSLhsl(237, 66%, 27%)
HSVhsv(237, 80%, 44%)
CMYKcmyk(79.6%, 76.1%, 0%, 55.7%)
CIE-LABlab(16.30, 30.63, -49.51)
CIE-LCHlch(16.30, 58.22, 301.75°)
OKLaboklab(29.12% 0.0033 -0.1433)
OKLCHoklch(29.12% 0.143 271.3)
XYZxyz(3.7249, 2.1579, 15.8398)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B71 #716D17
analogous
#174871 #171B71 #401771
triadic
#171B71 #71171B #1B7117
tetradic
#171B71 #711748 #716D17 #177140
square
#171B71 #711748 #716D17 #177140
split-complementary
#171B71 #714017 #487117
monochromatic
#050619 #0D0F3E #171B71 #2127A4 #2E35D4

Accessibility & contrast

On white

14.67
#171B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#171B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171B71
14.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B71#FFFFFF#000000##FFFFFF
##171B711.0014.671.4314.67
#FFFFFF14.671.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D74
Deuteranopia (green-blind)
#00246F
Tritanopia (blue-blind)
#003444
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #171b71;
/* rgb */ color: rgb(23, 27, 113);
/* oklch */ color: oklch(29.1% 0.143 271.3);
Tailwind
colors: {
  custom: {
    50: '#65589b',
    500: '#171b71',
    950: '#000000',
  },
}
SCSS
$custom: #171b71;
$custom-light: #65589b;
$custom-dark: #000000;
JSON
{
  "hex": "#171b71",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 113
  },
  "hsl": {
    "h": 237.333,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29124,
    "c": 0.14336,
    "h": 271.3
  },
  "luminance": 0.02158
}

Semantic roles & 50–950 ramp

primary
#171B71
secondary
#A7A23D
accent
#E23FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #171B71

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

Preview Lab → · Contrast checker → · Palette generator →

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