#172189#172189

#172189 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.8% C 0.168 H 269.0°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#172189
RGBrgb(23, 33, 137)
HSLhsl(235, 71%, 31%)
HSVhsv(235, 83%, 54%)
CMYKcmyk(83.2%, 75.9%, 0%, 46.3%)
CIE-LABlab(20.34, 35.69, -58.10)
CIE-LCHlch(20.34, 68.19, 301.56°)
OKLaboklab(32.82% -0.0029 -0.1683)
OKLCHoklch(32.82% 0.168 269)
XYZxyz(5.4110, 3.0754, 23.9705)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172189 #897F17
analogous
#175A89 #172189 #461789
triadic
#172189 #891721 #218917
tetradic
#172189 #89175A #897F17 #178946
square
#172189 #89175A #897F17 #178946
split-complementary
#172189 #894617 #5A8917
monochromatic
#050820 #0E1455 #172189 #202EBD #3C4ADE

Accessibility & contrast

On white

13.00
#172189 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#172189 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172189
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172189#FFFFFF#000000##FFFFFF
##1721891.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378C
Deuteranopia (green-blind)
#002B87
Tritanopia (blue-blind)
#003F53
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #172189;
/* rgb */ color: rgb(23, 33, 137);
/* oklch */ color: oklch(32.8% 0.168 269.0);
Tailwind
colors: {
  custom: {
    50: '#6b5dad',
    500: '#172189',
    950: '#000000',
  },
}
SCSS
$custom: #172189;
$custom-light: #6b5dad;
$custom-dark: #000000;
JSON
{
  "hex": "#172189",
  "rgb": {
    "r": 23,
    "g": 33,
    "b": 137
  },
  "hsl": {
    "h": 234.737,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32816,
    "c": 0.16838,
    "h": 269
  },
  "luminance": 0.03076
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #172189

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

Preview Lab → · Contrast checker → · Palette generator →

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