#173162#173162

#173162 is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.2% C 0.093 H 261.7°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#173162
RGBrgb(23, 49, 98)
HSLhsl(219, 62%, 24%)
HSVhsv(219, 77%, 38%)
CMYKcmyk(76.5%, 50%, 0%, 61.6%)
CIE-LABlab(21.06, 9.04, -31.97)
CIE-LCHlch(21.06, 33.22, 285.80°)
OKLaboklab(32.24% -0.0134 -0.0917)
OKLCHoklch(32.24% 0.093 261.7)
XYZxyz(3.6555, 3.2602, 11.9895)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173162 #624817
analogous
#175662 #173162 #221762
triadic
#173162 #621731 #316217
tetradic
#173162 #621756 #624817 #176222
square
#173162 #621756 #624817 #176222
split-complementary
#173162 #622217 #566217
monochromatic
#060C19 #0B1830 #173162 #234A94 #2E63C5

Accessibility & contrast

On white

12.71
#173162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#173162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173162
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173162#FFFFFF#000000##FFFFFF
##1731621.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173664
Deuteranopia (green-blind)
#062F61
Tritanopia (blue-blind)
#003D44
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #173162;
/* rgb */ color: rgb(23, 49, 98);
/* oklch */ color: oklch(32.2% 0.093 261.7);
Tailwind
colors: {
  custom: {
    50: '#5f688f',
    500: '#173162',
    950: '#000000',
  },
}
SCSS
$custom: #173162;
$custom-light: #5f688f;
$custom-dark: #000000;
JSON
{
  "hex": "#173162",
  "rgb": {
    "r": 23,
    "g": 49,
    "b": 98
  },
  "hsl": {
    "h": 219.2,
    "s": 61.983,
    "l": 23.725
  },
  "oklch": {
    "l": 0.32243,
    "c": 0.09264,
    "h": 261.7
  },
  "luminance": 0.03261
}

Semantic roles & 50–950 ramp

primary
#173162
secondary
#99793C
accent
#AD43E5
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #173162

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

Preview Lab → · Contrast checker → · Palette generator →

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