#173181#173181

#173181 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 34.9% C 0.139 H 265.6°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#173181
RGBrgb(23, 49, 129)
HSLhsl(225, 70%, 30%)
HSVhsv(225, 82%, 51%)
CMYKcmyk(82.2%, 62%, 0%, 49.4%)
CIE-LABlab(23.55, 21.90, -47.81)
CIE-LCHlch(23.55, 52.59, 294.61°)
OKLaboklab(34.91% -0.0105 -0.1382)
OKLCHoklch(34.91% 0.139 265.6)
XYZxyz(5.4127, 3.9631, 21.2443)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173181 #816717
analogous
#176681 #173181 #321781
triadic
#173181 #811731 #318117
tetradic
#173181 #811766 #816717 #178132
square
#173181 #811766 #816717 #178132
split-complementary
#173181 #813217 #668117
monochromatic
#050A1A #0E1D4D #173181 #2045B5 #375FDB

Accessibility & contrast

On white

11.71
#173181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#173181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173181
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173181#FFFFFF#000000##FFFFFF
##1731811.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D84
Deuteranopia (green-blind)
#00337F
Tritanopia (blue-blind)
#004554
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #173181;
/* rgb */ color: rgb(23, 49, 129);
/* oklch */ color: oklch(34.9% 0.139 265.6);
Tailwind
colors: {
  custom: {
    50: '#6868a6',
    500: '#173181',
    950: '#000000',
  },
}
SCSS
$custom: #173181;
$custom-light: #6868a6;
$custom-dark: #000000;
JSON
{
  "hex": "#173181",
  "rgb": {
    "r": 23,
    "g": 49,
    "b": 129
  },
  "hsl": {
    "h": 225.283,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.34914,
    "c": 0.13863,
    "h": 265.6
  },
  "luminance": 0.03964
}

Semantic roles & 50–950 ramp

primary
#173181
secondary
#B5983E
accent
#C13BED
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #173181

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

Preview Lab → · Contrast checker → · Palette generator →

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