#171778#171778

#171778 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.3% C 0.157 H 271.3°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#171778
RGBrgb(23, 23, 120)
HSLhsl(240, 68%, 28%)
HSVhsv(240, 81%, 47%)
CMYKcmyk(80.8%, 80.8%, 0%, 52.9%)
CIE-LABlab(16.26, 35.58, -54.08)
CIE-LCHlch(16.26, 64.73, 303.34°)
OKLaboklab(29.34% 0.0037 -0.1566)
OKLCHoklch(29.34% 0.157 271.3)
XYZxyz(4.0488, 2.1506, 17.9674)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171778 #787817
analogous
#174778 #171778 #471778
triadic
#171778 #781717 #177817
tetradic
#171778 #781747 #787817 #177847
square
#171778 #781747 #787817 #177847
split-complementary
#171778 #784717 #477817
monochromatic
#05051A #0D0D45 #171778 #2121AB #3232D8

Accessibility & contrast

On white

14.68
#171778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171778
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171778#FFFFFF#000000##FFFFFF
##1717781.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7B
Deuteranopia (green-blind)
#002376
Tritanopia (blue-blind)
#003547
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #171778;
/* rgb */ color: rgb(23, 23, 120);
/* oklch */ color: oklch(29.3% 0.157 271.3);
Tailwind
colors: {
  custom: {
    50: '#6856a0',
    500: '#171778',
    950: '#000000',
  },
}
SCSS
$custom: #171778;
$custom-light: #6856a0;
$custom-dark: #000000;
JSON
{
  "hex": "#171778",
  "rgb": {
    "r": 23,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 240,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29339,
    "c": 0.15662,
    "h": 271.3
  },
  "luminance": 0.02151
}

Semantic roles & 50–950 ramp

primary
#171778
secondary
#ADAD3E
accent
#EB3DEB
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #171778

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

Preview Lab → · Contrast checker → · Palette generator →

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