#173781#173781

#173781 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.2% C 0.131 H 263.6°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#173781
RGBrgb(23, 55, 129)
HSLhsl(222, 70%, 30%)
HSVhsv(222, 82%, 51%)
CMYKcmyk(82.2%, 57.4%, 0%, 49.4%)
CIE-LABlab(25.26, 17.66, -45.03)
CIE-LCHlch(25.26, 48.37, 291.41°)
OKLaboklab(36.2% -0.0147 -0.13)
OKLCHoklch(36.2% 0.131 263.6)
XYZxyz(5.6806, 4.4988, 21.3336)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173781 #816117
analogous
#176C81 #173781 #2C1781
triadic
#173781 #811737 #378117
tetradic
#173781 #81176C #816117 #17812C
square
#173781 #81176C #816117 #17812C
split-complementary
#173781 #812C17 #6C8117
monochromatic
#050B1A #0E214D #173781 #204DB5 #3769DB

Accessibility & contrast

On white

11.05
#173781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#173781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173781
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173781#FFFFFF#000000##FFFFFF
##1737811.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004184
Deuteranopia (green-blind)
#003780
Tritanopia (blue-blind)
#004956
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #173781;
/* rgb */ color: rgb(23, 55, 129);
/* oklch */ color: oklch(36.2% 0.131 263.6);
Tailwind
colors: {
  custom: {
    50: '#676da6',
    500: '#173781',
    950: '#000000',
  },
}
SCSS
$custom: #173781;
$custom-light: #676da6;
$custom-dark: #000000;
JSON
{
  "hex": "#173781",
  "rgb": {
    "r": 23,
    "g": 55,
    "b": 129
  },
  "hsl": {
    "h": 221.887,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.36196,
    "c": 0.13079,
    "h": 263.6
  },
  "luminance": 0.045
}

Semantic roles & 50–950 ramp

primary
#173781
secondary
#B5913E
accent
#B73BED
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #173781

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

Preview Lab → · Contrast checker → · Palette generator →

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