#171796#171796

#171796 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 33.1% C 0.193 H 269.2°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#171796
RGBrgb(23, 23, 150)
HSLhsl(240, 73%, 34%)
HSVhsv(240, 85%, 59%)
CMYKcmyk(84.7%, 84.7%, 0%, 41.2%)
CIE-LABlab(20.03, 45.58, -66.71)
CIE-LCHlch(20.03, 80.79, 304.34°)
OKLaboklab(33.05% -0.0028 -0.1931)
OKLCHoklch(33.05% 0.193 269.2)
XYZxyz(6.1629, 2.9962, 29.1018)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171796 #969617
analogous
#175796 #171796 #571796
triadic
#171796 #961717 #179617
tetradic
#171796 #961757 #969617 #179657
square
#171796 #961757 #969617 #179657
split-complementary
#171796 #965717 #579617
monochromatic
#07072C #0F0F61 #171796 #1F1FCB #4545E2

Accessibility & contrast

On white

13.13
#171796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#171796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171796
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171796#FFFFFF#000000##FFFFFF
##1717961.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003799
Deuteranopia (green-blind)
#002994
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #171796;
/* rgb */ color: rgb(23, 23, 150);
/* oklch */ color: oklch(33.1% 0.193 269.2);
Tailwind
colors: {
  custom: {
    50: '#7058b6',
    500: '#171796',
    950: '#000000',
  },
}
SCSS
$custom: #171796;
$custom-light: #7058b6;
$custom-dark: #000000;
JSON
{
  "hex": "#171796",
  "rgb": {
    "r": 23,
    "g": 23,
    "b": 150
  },
  "hsl": {
    "h": 240,
    "s": 73.41,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33051,
    "c": 0.19315,
    "h": 269.2
  },
  "luminance": 0.02997
}

Semantic roles & 50–950 ramp

primary
#171796
secondary
#C3C345
accent
#F038F0
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #171796

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

Preview Lab → · Contrast checker → · Palette generator →

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