#171B77#171B77

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

Color values

HEX#171B77
RGBrgb(23, 27, 119)
HSLhsl(238, 68%, 28%)
HSVhsv(238, 81%, 47%)
CMYKcmyk(80.7%, 77.3%, 0%, 53.3%)
CIE-LABlab(16.98, 32.84, -52.25)
CIE-LCHlch(16.98, 61.71, 302.15°)
OKLaboklab(29.81% 0.0023 -0.1513)
OKLCHoklch(29.81% 0.151 270.9)
XYZxyz(4.0739, 2.2975, 17.6779)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B77 #777317
analogous
#174B77 #171B77 #431777
triadic
#171B77 #77171B #1B7717
tetradic
#171B77 #77174B #777317 #177743
square
#171B77 #77174B #777317 #177743
split-complementary
#171B77 #774317 #4B7717
monochromatic
#05061A #0D0F44 #171B77 #2127AA #3138D7

Accessibility & contrast

On white

14.39
#171B77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171B77
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B77#FFFFFF#000000##FFFFFF
##171B771.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171b77;
/* rgb */ color: rgb(23, 27, 119);
/* oklch */ color: oklch(29.8% 0.151 270.9);
Tailwind
colors: {
  custom: {
    50: '#67589f',
    500: '#171b77',
    950: '#000000',
  },
}
SCSS
$custom: #171b77;
$custom-light: #67589f;
$custom-dark: #000000;
JSON
{
  "hex": "#171b77",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 119
  },
  "hsl": {
    "h": 237.5,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29812,
    "c": 0.15132,
    "h": 270.9
  },
  "luminance": 0.02298
}

Semantic roles & 50–950 ramp

primary
#171B77
secondary
#ACA83E
accent
#E33DEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030F
muted
#7A787E

Preview Lab

Preview with #171B77

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

Preview Lab → · Contrast checker → · Palette generator →

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