#173986#173986

#173986 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.1% C 0.135 H 263.3°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#173986
RGBrgb(23, 57, 134)
HSLhsl(222, 71%, 31%)
HSVhsv(222, 83%, 53%)
CMYKcmyk(82.8%, 57.5%, 0%, 47.5%)
CIE-LABlab(26.24, 18.31, -46.56)
CIE-LCHlch(26.24, 50.03, 291.47°)
OKLaboklab(37.07% -0.0157 -0.1344)
OKLCHoklch(37.07% 0.135 263.3)
XYZxyz(6.1180, 4.8289, 23.1593)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173986 #866417
analogous
#177086 #173986 #2D1786
triadic
#173986 #861739 #398617
tetradic
#173986 #861770 #866417 #17862D
square
#173986 #861770 #866417 #17862D
split-complementary
#173986 #862D17 #708617
monochromatic
#050D1E #0E2352 #173986 #204FBA #3A6CDD

Accessibility & contrast

On white

10.68
#173986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#173986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173986
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173986#FFFFFF#000000##FFFFFF
##1739861.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004389
Deuteranopia (green-blind)
#003984
Tritanopia (blue-blind)
#004C59
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #173986;
/* rgb */ color: rgb(23, 57, 134);
/* oklch */ color: oklch(37.1% 0.135 263.3);
Tailwind
colors: {
  custom: {
    50: '#686eaa',
    500: '#173986',
    950: '#000000',
  },
}
SCSS
$custom: #173986;
$custom-light: #686eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#173986",
  "rgb": {
    "r": 23,
    "g": 57,
    "b": 134
  },
  "hsl": {
    "h": 221.622,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.37067,
    "c": 0.13532,
    "h": 263.3
  },
  "luminance": 0.0483
}

Semantic roles & 50–950 ramp

primary
#173986
secondary
#BA943F
accent
#B73AED
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#070710
muted
#7A7A7F

Preview Lab

Preview with #173986

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

Preview Lab → · Contrast checker → · Palette generator →

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