#172188#172188

#172188 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.7% C 0.167 H 269.0°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#172188
RGBrgb(23, 33, 136)
HSLhsl(235, 71%, 31%)
HSVhsv(235, 83%, 53%)
CMYKcmyk(83.1%, 75.7%, 0%, 46.7%)
CIE-LABlab(20.23, 35.33, -57.66)
CIE-LCHlch(20.23, 67.63, 301.50°)
OKLaboklab(32.7% -0.0028 -0.1671)
OKLCHoklch(32.7% 0.167 269)
XYZxyz(5.3396, 3.0468, 23.5945)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172188 #887E17
analogous
#175988 #172188 #451788
triadic
#172188 #881721 #218817
tetradic
#172188 #881759 #887E17 #178845
square
#172188 #881759 #887E17 #178845
split-complementary
#172188 #884517 #598817
monochromatic
#05081F #0E1454 #172188 #202EBC #3B4ADE

Accessibility & contrast

On white

13.05
#172188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#172188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172188
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172188#FFFFFF#000000##FFFFFF
##1721881.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368B
Deuteranopia (green-blind)
#002B86
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #172188;
/* rgb */ color: rgb(23, 33, 136);
/* oklch */ color: oklch(32.7% 0.167 269.0);
Tailwind
colors: {
  custom: {
    50: '#6b5dac',
    500: '#172188',
    950: '#000000',
  },
}
SCSS
$custom: #172188;
$custom-light: #6b5dac;
$custom-dark: #000000;
JSON
{
  "hex": "#172188",
  "rgb": {
    "r": 23,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 234.69,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32702,
    "c": 0.16709,
    "h": 269
  },
  "luminance": 0.03047
}

Semantic roles & 50–950 ramp

primary
#172188
secondary
#BCB13F
accent
#DE3AEE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #172188

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

Preview Lab → · Contrast checker → · Palette generator →

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