#172186#172186

#172186 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.165 H 269.1°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#172186
RGBrgb(23, 33, 134)
HSLhsl(235, 71%, 31%)
HSVhsv(235, 83%, 53%)
CMYKcmyk(82.8%, 75.4%, 0%, 47.5%)
CIE-LABlab(20.01, 34.60, -56.78)
CIE-LCHlch(20.01, 66.49, 301.36°)
OKLaboklab(32.48% -0.0025 -0.1645)
OKLCHoklch(32.48% 0.165 269.1)
XYZxyz(5.1988, 2.9905, 22.8529)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172186 #867C17
analogous
#175886 #172186 #451786
triadic
#172186 #861721 #218617
tetradic
#172186 #861758 #867C17 #178645
square
#172186 #861758 #867C17 #178645
split-complementary
#172186 #864517 #588617
monochromatic
#05071E #0E1452 #172186 #202EBA #3A49DD

Accessibility & contrast

On white

13.14
#172186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172186
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172186#FFFFFF#000000##FFFFFF
##1721861.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #172186;
/* rgb */ color: rgb(23, 33, 134);
/* oklch */ color: oklch(32.5% 0.165 269.1);
Tailwind
colors: {
  custom: {
    50: '#6b5daa',
    500: '#172186',
    950: '#000000',
  },
}
SCSS
$custom: #172186;
$custom-light: #6b5daa;
$custom-dark: #000000;
JSON
{
  "hex": "#172186",
  "rgb": {
    "r": 23,
    "g": 33,
    "b": 134
  },
  "hsl": {
    "h": 234.595,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32475,
    "c": 0.16452,
    "h": 269.1
  },
  "luminance": 0.02991
}

Semantic roles & 50–950 ramp

primary
#172186
secondary
#BAAF3F
accent
#DD3AED
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #172186

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

Preview Lab → · Contrast checker → · Palette generator →

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