#172E84#172E84

#172E84 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.6% C 0.147 H 266.6°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#172E84
RGBrgb(23, 46, 132)
HSLhsl(227, 70%, 30%)
HSVhsv(227, 83%, 52%)
CMYKcmyk(82.6%, 65.2%, 0%, 48.2%)
CIE-LABlab(23.00, 25.20, -50.59)
CIE-LCHlch(23.00, 56.52, 296.48°)
OKLaboklab(34.59% -0.0086 -0.1464)
OKLCHoklch(34.59% 0.147 266.6)
XYZxyz(5.4937, 3.8014, 22.2695)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172E84 #846D17
analogous
#176584 #172E84 #361784
triadic
#172E84 #84172E #2E8417
tetradic
#172E84 #841765 #846D17 #178436
square
#172E84 #841765 #846D17 #178436
split-complementary
#172E84 #843617 #658417
monochromatic
#050A1C #0E1C50 #172E84 #2040B8 #395BDC

Accessibility & contrast

On white

11.93
#172E84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#172E84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172E84
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172E84#FFFFFF#000000##FFFFFF
##172E841.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C87
Deuteranopia (green-blind)
#003282
Tritanopia (blue-blind)
#004554
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #172e84;
/* rgb */ color: rgb(23, 46, 132);
/* oklch */ color: oklch(34.6% 0.147 266.6);
Tailwind
colors: {
  custom: {
    50: '#6966a9',
    500: '#172e84',
    950: '#000000',
  },
}
SCSS
$custom: #172e84;
$custom-light: #6966a9;
$custom-dark: #000000;
JSON
{
  "hex": "#172e84",
  "rgb": {
    "r": 23,
    "g": 46,
    "b": 132
  },
  "hsl": {
    "h": 227.339,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34594,
    "c": 0.14667,
    "h": 266.6
  },
  "luminance": 0.03802
}

Semantic roles & 50–950 ramp

primary
#172E84
secondary
#B89F3F
accent
#C73BED
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#070610
muted
#7A7A7F

Preview Lab

Preview with #172E84

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

Preview Lab → · Contrast checker → · Palette generator →

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