#173786#173786

#173786 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.6% C 0.138 H 264.0°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#173786
RGBrgb(23, 55, 134)
HSLhsl(223, 71%, 31%)
HSVhsv(223, 83%, 53%)
CMYKcmyk(82.8%, 59%, 0%, 47.5%)
CIE-LABlab(25.67, 19.71, -47.49)
CIE-LCHlch(25.67, 51.42, 292.54°)
OKLaboklab(36.64% -0.0143 -0.1372)
OKLCHoklch(36.64% 0.138 264)
XYZxyz(6.0211, 4.6350, 23.1270)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173786 #866617
analogous
#176E86 #173786 #2E1786
triadic
#173786 #861737 #378617
tetradic
#173786 #86176E #866617 #17862E
square
#173786 #86176E #866617 #17862E
split-complementary
#173786 #862E17 #6E8617
monochromatic
#050C1E #0E2252 #173786 #204CBA #3A69DD

Accessibility & contrast

On white

10.90
#173786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#173786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173786
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173786#FFFFFF#000000##FFFFFF
##1737861.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004289
Deuteranopia (green-blind)
#003884
Tritanopia (blue-blind)
#004B59
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #173786;
/* rgb */ color: rgb(23, 55, 134);
/* oklch */ color: oklch(36.6% 0.138 264.0);
Tailwind
colors: {
  custom: {
    50: '#686daa',
    500: '#173786',
    950: '#000000',
  },
}
SCSS
$custom: #173786;
$custom-light: #686daa;
$custom-dark: #000000;
JSON
{
  "hex": "#173786",
  "rgb": {
    "r": 23,
    "g": 55,
    "b": 134
  },
  "hsl": {
    "h": 222.703,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36636,
    "c": 0.13793,
    "h": 264
  },
  "luminance": 0.04636
}

Semantic roles & 50–950 ramp

primary
#173786
secondary
#BA963F
accent
#BA3AED
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#070710
muted
#7A7A7F

Preview Lab

Preview with #173786

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

Preview Lab → · Contrast checker → · Palette generator →

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