#173158#173158

#173158 is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.5% C 0.077 H 258.4°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#173158
RGBrgb(23, 49, 88)
HSLhsl(216, 59%, 22%)
HSVhsv(216, 74%, 35%)
CMYKcmyk(73.9%, 44.3%, 0%, 65.5%)
CIE-LABlab(20.37, 4.88, -26.48)
CIE-LCHlch(20.37, 26.92, 280.44°)
OKLaboklab(31.5% -0.0155 -0.0755)
OKLCHoklch(31.5% 0.077 258.4)
XYZxyz(3.2125, 3.0830, 9.6564)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173158 #583E17
analogous
#175258 #173158 #1E1758
triadic
#173158 #581731 #315817
tetradic
#173158 #581752 #583E17 #17581E
square
#173158 #581752 #583E17 #17581E
split-complementary
#173158 #581E17 #525817
monochromatic
#060E18 #0A1627 #173158 #244C89 #3067B9

Accessibility & contrast

On white

12.99
#173158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#173158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173158
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173158#FFFFFF#000000##FFFFFF
##1731581.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F345A
Deuteranopia (green-blind)
#152E57
Tritanopia (blue-blind)
#003A40
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #173158;
/* rgb */ color: rgb(23, 49, 88);
/* oklch */ color: oklch(31.5% 0.077 258.4);
Tailwind
colors: {
  custom: {
    50: '#5d6887',
    500: '#173158',
    950: '#000000',
  },
}
SCSS
$custom: #173158;
$custom-light: #5d6887;
$custom-dark: #000000;
JSON
{
  "hex": "#173158",
  "rgb": {
    "r": 23,
    "g": 49,
    "b": 88
  },
  "hsl": {
    "h": 216,
    "s": 58.559,
    "l": 21.765
  },
  "oklch": {
    "l": 0.31495,
    "c": 0.07709,
    "h": 258.4
  },
  "luminance": 0.03083
}

Semantic roles & 50–950 ramp

primary
#173158
secondary
#8F6E3C
accent
#A346E2
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#05060B
muted
#797A7C

Preview Lab

Preview with #173158

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

Preview Lab → · Contrast checker → · Palette generator →

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