#173789#173789

#173789 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 36.9% C 0.142 H 264.3°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#173789
RGBrgb(23, 55, 137)
HSLhsl(223, 71%, 31%)
HSVhsv(223, 83%, 54%)
CMYKcmyk(83.2%, 59.9%, 0%, 46.3%)
CIE-LABlab(25.92, 20.94, -48.94)
CIE-LCHlch(25.92, 53.23, 293.16°)
OKLaboklab(36.9% -0.0142 -0.1415)
OKLCHoklch(36.9% 0.142 264.3)
XYZxyz(6.2333, 4.7199, 24.2446)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173789 #896917
analogous
#177089 #173789 #301789
triadic
#173789 #891737 #378917
tetradic
#173789 #891770 #896917 #178930
square
#173789 #891770 #896917 #178930
split-complementary
#173789 #893017 #708917
monochromatic
#050D20 #0E2255 #173789 #204CBD #3C6ADE

Accessibility & contrast

On white

10.80
#173789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#173789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173789
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173789#FFFFFF#000000##FFFFFF
##1737891.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438C
Deuteranopia (green-blind)
#003887
Tritanopia (blue-blind)
#004C5A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #173789;
/* rgb */ color: rgb(23, 55, 137);
/* oklch */ color: oklch(36.9% 0.142 264.3);
Tailwind
colors: {
  custom: {
    50: '#696dac',
    500: '#173789',
    950: '#000000',
  },
}
SCSS
$custom: #173789;
$custom-light: #696dac;
$custom-dark: #000000;
JSON
{
  "hex": "#173789",
  "rgb": {
    "r": 23,
    "g": 55,
    "b": 137
  },
  "hsl": {
    "h": 223.158,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36904,
    "c": 0.14217,
    "h": 264.3
  },
  "luminance": 0.04721
}

Semantic roles & 50–950 ramp

primary
#173789
secondary
#BD993F
accent
#BB3AEE
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#070710
muted
#7A7A7F

Preview Lab

Preview with #173789

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

Preview Lab → · Contrast checker → · Palette generator →

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