#171777#171777

#171777 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.2% C 0.155 H 271.4°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#171777
RGBrgb(23, 23, 119)
HSLhsl(240, 68%, 28%)
HSVhsv(240, 81%, 47%)
CMYKcmyk(80.7%, 80.7%, 0%, 53.3%)
CIE-LABlab(16.14, 35.23, -53.64)
CIE-LCHlch(16.14, 64.17, 303.29°)
OKLaboklab(29.22% 0.0039 -0.1553)
OKLCHoklch(29.22% 0.155 271.4)
XYZxyz(3.9884, 2.1264, 17.6494)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171777 #777717
analogous
#174777 #171777 #471777
triadic
#171777 #771717 #177717
tetradic
#171777 #771747 #777717 #177747
square
#171777 #771747 #777717 #177747
split-complementary
#171777 #774717 #477717
monochromatic
#05051A #0D0D44 #171777 #2121AA #3131D7

Accessibility & contrast

On white

14.73
#171777 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#171777 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171777
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171777#FFFFFF#000000##FFFFFF
##1717771.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7A
Deuteranopia (green-blind)
#002375
Tritanopia (blue-blind)
#003446
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #171777;
/* rgb */ color: rgb(23, 23, 119);
/* oklch */ color: oklch(29.2% 0.155 271.4);
Tailwind
colors: {
  custom: {
    50: '#67569f',
    500: '#171777',
    950: '#000000',
  },
}
SCSS
$custom: #171777;
$custom-light: #67569f;
$custom-dark: #000000;
JSON
{
  "hex": "#171777",
  "rgb": {
    "r": 23,
    "g": 23,
    "b": 119
  },
  "hsl": {
    "h": 240,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29219,
    "c": 0.15534,
    "h": 271.4
  },
  "luminance": 0.02127
}

Semantic roles & 50–950 ramp

primary
#171777
secondary
#ACAC3E
accent
#EA3DEA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030F
muted
#7A787E

Preview Lab

Preview with #171777

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

Preview Lab → · Contrast checker → · Palette generator →

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