#173A8C#173A8C

#173A8C is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.8% C 0.143 H 263.6°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#173A8C
RGBrgb(23, 58, 140)
HSLhsl(222, 72%, 32%)
HSVhsv(222, 84%, 55%)
CMYKcmyk(83.6%, 58.6%, 0%, 45.1%)
CIE-LABlab(27.02, 20.06, -49.01)
CIE-LCHlch(27.02, 52.96, 292.26°)
OKLaboklab(37.81% -0.016 -0.1416)
OKLCHoklch(37.81% 0.143 263.6)
XYZxyz(6.5983, 5.1009, 25.4427)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173A8C #8C6917
analogous
#17758C #173A8C #2E178C
triadic
#173A8C #8C173A #3A8C17
tetradic
#173A8C #8C1775 #8C6917 #178C2E
square
#173A8C #8C1775 #8C6917 #178C2E
split-complementary
#173A8C #8C2E17 #758C17
monochromatic
#060E23 #0E2457 #173A8C #2050C1 #3E6EDF

Accessibility & contrast

On white

10.39
#173A8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#173A8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173A8C
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173A8C#FFFFFF#000000##FFFFFF
##173A8C1.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458F
Deuteranopia (green-blind)
#003B8A
Tritanopia (blue-blind)
#004F5D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #173a8c;
/* rgb */ color: rgb(23, 58, 140);
/* oklch */ color: oklch(37.8% 0.143 263.6);
Tailwind
colors: {
  custom: {
    50: '#6a6fae',
    500: '#173a8c',
    950: '#000000',
  },
}
SCSS
$custom: #173a8c;
$custom-light: #6a6fae;
$custom-dark: #000000;
JSON
{
  "hex": "#173a8c",
  "rgb": {
    "r": 23,
    "g": 58,
    "b": 140
  },
  "hsl": {
    "h": 222.051,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37809,
    "c": 0.14251,
    "h": 263.6
  },
  "luminance": 0.05102
}

Semantic roles & 50–950 ramp

primary
#173A8C
secondary
#BF993F
accent
#B839EF
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #173A8C

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

Preview Lab → · Contrast checker → · Palette generator →

#173A8C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva