#172E86#172E86

#172E86 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.8% C 0.149 H 266.7°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#172E86
RGBrgb(23, 46, 134)
HSLhsl(228, 71%, 31%)
HSVhsv(228, 83%, 53%)
CMYKcmyk(82.8%, 65.7%, 0%, 47.5%)
CIE-LABlab(23.19, 26.00, -51.53)
CIE-LCHlch(23.19, 57.72, 296.77°)
OKLaboklab(34.79% -0.0087 -0.1492)
OKLCHoklch(34.79% 0.149 266.7)
XYZxyz(5.6319, 3.8567, 22.9972)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172E86 #866F17
analogous
#176586 #172E86 #381786
triadic
#172E86 #86172E #2E8617
tetradic
#172E86 #861765 #866F17 #178638
square
#172E86 #861765 #866F17 #178638
split-complementary
#172E86 #863817 #658617
monochromatic
#050A1E #0E1C52 #172E86 #2040BA #3A5CDD

Accessibility & contrast

On white

11.86
#172E86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#172E86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172E86
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172E86#FFFFFF#000000##FFFFFF
##172E861.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D89
Deuteranopia (green-blind)
#003284
Tritanopia (blue-blind)
#004555
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #172e86;
/* rgb */ color: rgb(23, 46, 134);
/* oklch */ color: oklch(34.8% 0.149 266.7);
Tailwind
colors: {
  custom: {
    50: '#6966aa',
    500: '#172e86',
    950: '#000000',
  },
}
SCSS
$custom: #172e86;
$custom-light: #6966aa;
$custom-dark: #000000;
JSON
{
  "hex": "#172e86",
  "rgb": {
    "r": 23,
    "g": 46,
    "b": 134
  },
  "hsl": {
    "h": 227.568,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3479,
    "c": 0.14943,
    "h": 266.7
  },
  "luminance": 0.03857
}

Semantic roles & 50–950 ramp

primary
#172E86
secondary
#BAA03F
accent
#C83AED
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#070610
muted
#7A7A7F

Preview Lab

Preview with #172E86

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

Preview Lab → · Contrast checker → · Palette generator →

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