#172F86#172F86

#172F86 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.0% C 0.148 H 266.4°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#172F86
RGBrgb(23, 47, 134)
HSLhsl(227, 71%, 31%)
HSVhsv(227, 83%, 53%)
CMYKcmyk(82.8%, 64.9%, 0%, 47.5%)
CIE-LABlab(23.46, 25.31, -51.10)
CIE-LCHlch(23.46, 57.02, 296.35°)
OKLaboklab(34.99% -0.0093 -0.1479)
OKLCHoklch(34.99% 0.148 266.4)
XYZxyz(5.6714, 3.9357, 23.0104)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F86 #866E17
analogous
#176686 #172F86 #361786
triadic
#172F86 #86172F #2F8617
tetradic
#172F86 #861766 #866E17 #178636
square
#172F86 #861766 #866E17 #178636
split-complementary
#172F86 #863617 #668617
monochromatic
#050A1E #0E1D52 #172F86 #2041BA #3A5DDD

Accessibility & contrast

On white

11.75
#172F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#172F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F86
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F86#FFFFFF#000000##FFFFFF
##172F861.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D89
Deuteranopia (green-blind)
#003384
Tritanopia (blue-blind)
#004656
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #172f86;
/* rgb */ color: rgb(23, 47, 134);
/* oklch */ color: oklch(35.0% 0.148 266.4);
Tailwind
colors: {
  custom: {
    50: '#6967aa',
    500: '#172f86',
    950: '#000000',
  },
}
SCSS
$custom: #172f86;
$custom-light: #6967aa;
$custom-dark: #000000;
JSON
{
  "hex": "#172f86",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 134
  },
  "hsl": {
    "h": 227.027,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34987,
    "c": 0.14818,
    "h": 266.4
  },
  "luminance": 0.03936
}

Semantic roles & 50–950 ramp

primary
#172F86
secondary
#BA9F3F
accent
#C73AED
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#070610
muted
#7A7A7F

Preview Lab

Preview with #172F86

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

Preview Lab → · Contrast checker → · Palette generator →

#172F86 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva