#171771#171771

#171771 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.5% C 0.148 H 272.0°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#171771
RGBrgb(23, 23, 113)
HSLhsl(240, 66%, 27%)
HSVhsv(240, 80%, 44%)
CMYKcmyk(79.6%, 79.6%, 0%, 55.7%)
CIE-LABlab(15.42, 33.10, -50.95)
CIE-LCHlch(15.42, 60.76, 303.01°)
OKLaboklab(28.5% 0.0051 -0.1475)
OKLCHoklch(28.5% 0.148 272)
XYZxyz(3.6394, 1.9868, 15.8113)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171771 #717117
analogous
#174471 #171771 #441771
triadic
#171771 #711717 #177117
tetradic
#171771 #711744 #717117 #177144
square
#171771 #711744 #717117 #177144
split-complementary
#171771 #714417 #447117
monochromatic
#050519 #0D0D3E #171771 #2121A4 #2E2ED4

Accessibility & contrast

On white

15.03
#171771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#171771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171771
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171771#FFFFFF#000000##FFFFFF
##1717711.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B74
Deuteranopia (green-blind)
#00226F
Tritanopia (blue-blind)
#003243
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #171771;
/* rgb */ color: rgb(23, 23, 113);
/* oklch */ color: oklch(28.5% 0.148 272.0);
Tailwind
colors: {
  custom: {
    50: '#66559b',
    500: '#171771',
    950: '#000000',
  },
}
SCSS
$custom: #171771;
$custom-light: #66559b;
$custom-dark: #000000;
JSON
{
  "hex": "#171771",
  "rgb": {
    "r": 23,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 240,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.28501,
    "c": 0.14759,
    "h": 272
  },
  "luminance": 0.01987
}

Semantic roles & 50–950 ramp

primary
#171771
secondary
#A7A73D
accent
#E93FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #171771

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

Preview Lab → · Contrast checker → · Palette generator →

#171771 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva