#172086#172086

#172086 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.3% C 0.166 H 269.3°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#172086
RGBrgb(23, 32, 134)
HSLhsl(235, 71%, 31%)
HSVhsv(235, 83%, 53%)
CMYKcmyk(82.8%, 76.1%, 0%, 47.5%)
CIE-LABlab(19.78, 35.22, -57.14)
CIE-LCHlch(19.78, 67.12, 301.65°)
OKLaboklab(32.32% -0.0021 -0.1656)
OKLCHoklch(32.32% 0.166 269.3)
XYZxyz(5.1715, 2.9358, 22.8437)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172086 #867D17
analogous
#175786 #172086 #451786
triadic
#172086 #861720 #208617
tetradic
#172086 #861757 #867D17 #178645
square
#172086 #861757 #867D17 #178645
split-complementary
#172086 #864517 #578617
monochromatic
#05071E #0E1452 #172086 #202CBA #3A47DD

Accessibility & contrast

On white

13.23
#172086 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#172086 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172086
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172086#FFFFFF#000000##FFFFFF
##1720861.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#002A84
Tritanopia (blue-blind)
#003E51
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #172086;
/* rgb */ color: rgb(23, 32, 134);
/* oklch */ color: oklch(32.3% 0.166 269.3);
Tailwind
colors: {
  custom: {
    50: '#6b5caa',
    500: '#172086',
    950: '#000000',
  },
}
SCSS
$custom: #172086;
$custom-light: #6b5caa;
$custom-dark: #000000;
JSON
{
  "hex": "#172086",
  "rgb": {
    "r": 23,
    "g": 32,
    "b": 134
  },
  "hsl": {
    "h": 235.135,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32318,
    "c": 0.16557,
    "h": 269.3
  },
  "luminance": 0.02936
}

Semantic roles & 50–950 ramp

primary
#172086
secondary
#BAB03F
accent
#DF3AED
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #172086

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

Preview Lab → · Contrast checker → · Palette generator →

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