#172784#172784

#172784 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.3% C 0.155 H 268.2°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#172784
RGBrgb(23, 39, 132)
HSLhsl(231, 70%, 30%)
HSVhsv(231, 83%, 52%)
CMYKcmyk(82.6%, 70.5%, 0%, 48.2%)
CIE-LABlab(21.20, 29.97, -53.55)
CIE-LCHlch(21.20, 61.37, 299.24°)
OKLaboklab(33.27% -0.0049 -0.1551)
OKLCHoklch(33.27% 0.155 268.2)
XYZxyz(5.2423, 3.2985, 22.1857)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172784 #847417
analogous
#175D84 #172784 #3E1784
triadic
#172784 #841727 #278417
tetradic
#172784 #84175D #847417 #17843E
square
#172784 #84175D #847417 #17843E
split-complementary
#172784 #843E17 #5D8417
monochromatic
#05081C #0E1850 #172784 #2036B8 #3951DC

Accessibility & contrast

On white

12.65
#172784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#172784 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172784
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172784#FFFFFF#000000##FFFFFF
##1727841.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #172784;
/* rgb */ color: rgb(23, 39, 132);
/* oklch */ color: oklch(33.3% 0.155 268.2);
Tailwind
colors: {
  custom: {
    50: '#6961a9',
    500: '#172784',
    950: '#000000',
  },
}
SCSS
$custom: #172784;
$custom-light: #6961a9;
$custom-dark: #000000;
JSON
{
  "hex": "#172784",
  "rgb": {
    "r": 23,
    "g": 39,
    "b": 132
  },
  "hsl": {
    "h": 231.193,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33273,
    "c": 0.15519,
    "h": 268.2
  },
  "luminance": 0.03299
}

Semantic roles & 50–950 ramp

primary
#172784
secondary
#B8A63F
accent
#D33BED
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#080510
muted
#7A797F

Preview Lab

Preview with #172784

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

Preview Lab → · Contrast checker → · Palette generator →

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