#171779#171779

#171779 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.5% C 0.158 H 271.2°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#171779
RGBrgb(23, 23, 121)
HSLhsl(240, 68%, 28%)
HSVhsv(240, 81%, 47%)
CMYKcmyk(81%, 81%, 0%, 52.5%)
CIE-LABlab(16.38, 35.93, -54.52)
CIE-LCHlch(16.38, 65.29, 303.38°)
OKLaboklab(29.46% 0.0034 -0.1578)
OKLCHoklch(29.46% 0.158 271.2)
XYZxyz(4.1098, 2.1750, 18.2887)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171779 #797917
analogous
#174879 #171779 #481779
triadic
#171779 #791717 #177917
tetradic
#171779 #791748 #797917 #177948
square
#171779 #791748 #797917 #177948
split-complementary
#171779 #794817 #487917
monochromatic
#05051A #0D0D46 #171779 #2121AC #3232D8

Accessibility & contrast

On white

14.63
#171779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#171779 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171779
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171779#FFFFFF#000000##FFFFFF
##1717791.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7C
Deuteranopia (green-blind)
#002477
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #171779;
/* rgb */ color: rgb(23, 23, 121);
/* oklch */ color: oklch(29.5% 0.158 271.2);
Tailwind
colors: {
  custom: {
    50: '#6856a1',
    500: '#171779',
    950: '#000000',
  },
}
SCSS
$custom: #171779;
$custom-light: #6856a1;
$custom-dark: #000000;
JSON
{
  "hex": "#171779",
  "rgb": {
    "r": 23,
    "g": 23,
    "b": 121
  },
  "hsl": {
    "h": 240,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.2946,
    "c": 0.15789,
    "h": 271.2
  },
  "luminance": 0.02175
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #171779

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

Preview Lab → · Contrast checker → · Palette generator →

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