#172884#172884

#172884 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.154 H 268.0°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#172884
RGBrgb(23, 40, 132)
HSLhsl(231, 70%, 30%)
HSVhsv(231, 83%, 52%)
CMYKcmyk(82.6%, 69.7%, 0%, 48.2%)
CIE-LABlab(21.45, 29.30, -53.14)
CIE-LCHlch(21.45, 60.68, 298.87°)
OKLaboklab(33.45% -0.0054 -0.1539)
OKLCHoklch(33.45% 0.154 268)
XYZxyz(5.2756, 3.3651, 22.1968)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172884 #847317
analogous
#175E84 #172884 #3C1784
triadic
#172884 #841728 #288417
tetradic
#172884 #84175E #847317 #17843C
square
#172884 #84175E #847317 #17843C
split-complementary
#172884 #843C17 #5E8417
monochromatic
#05081C #0E1850 #172884 #2038B8 #3952DC

Accessibility & contrast

On white

12.55
#172884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#172884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172884
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172884#FFFFFF#000000##FFFFFF
##1728841.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003987
Deuteranopia (green-blind)
#002E82
Tritanopia (blue-blind)
#004152
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #172884;
/* rgb */ color: rgb(23, 40, 132);
/* oklch */ color: oklch(33.5% 0.154 268.0);
Tailwind
colors: {
  custom: {
    50: '#6962a9',
    500: '#172884',
    950: '#000000',
  },
}
SCSS
$custom: #172884;
$custom-light: #6962a9;
$custom-dark: #000000;
JSON
{
  "hex": "#172884",
  "rgb": {
    "r": 23,
    "g": 40,
    "b": 132
  },
  "hsl": {
    "h": 230.642,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33454,
    "c": 0.154,
    "h": 268
  },
  "luminance": 0.03366
}

Semantic roles & 50–950 ramp

primary
#172884
secondary
#B8A53F
accent
#D13BED
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#070510
muted
#7A797F

Preview Lab

Preview with #172884

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

Preview Lab → · Contrast checker → · Palette generator →

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