#172785#172785

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

Color values

HEX#172785
RGBrgb(23, 39, 133)
HSLhsl(231, 71%, 31%)
HSVhsv(231, 83%, 52%)
CMYKcmyk(82.7%, 70.7%, 0%, 47.8%)
CIE-LABlab(21.30, 30.36, -54.01)
CIE-LCHlch(21.30, 61.95, 299.34°)
OKLaboklab(33.38% -0.005 -0.1564)
OKLCHoklch(33.38% 0.157 268.2)
XYZxyz(5.3110, 3.3260, 22.5478)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172785 #857517
analogous
#175E85 #172785 #3E1785
triadic
#172785 #851727 #278517
tetradic
#172785 #85175E #857517 #17853E
square
#172785 #85175E #857517 #17853E
split-complementary
#172785 #853E17 #5E8517
monochromatic
#05081D #0E1851 #172785 #2036B9 #3A51DD

Accessibility & contrast

On white

12.61
#172785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172785
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172785#FFFFFF#000000##FFFFFF
##1727851.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #172785;
/* rgb */ color: rgb(23, 39, 133);
/* oklch */ color: oklch(33.4% 0.157 268.2);
Tailwind
colors: {
  custom: {
    50: '#6a61aa',
    500: '#172785',
    950: '#000000',
  },
}
SCSS
$custom: #172785;
$custom-light: #6a61aa;
$custom-dark: #000000;
JSON
{
  "hex": "#172785",
  "rgb": {
    "r": 23,
    "g": 39,
    "b": 133
  },
  "hsl": {
    "h": 231.273,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33379,
    "c": 0.15653,
    "h": 268.2
  },
  "luminance": 0.03327
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #172785

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

Preview Lab → · Contrast checker → · Palette generator →

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