#172E8E#172E8E

#172E8E is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.6% C 0.160 H 266.8°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#172E8E
RGBrgb(23, 46, 142)
HSLhsl(228, 72%, 32%)
HSVhsv(228, 84%, 56%)
CMYKcmyk(83.8%, 67.6%, 0%, 44.3%)
CIE-LABlab(23.96, 29.15, -55.26)
CIE-LCHlch(23.96, 62.47, 297.81°)
OKLaboklab(35.59% -0.009 -0.1601)
OKLCHoklch(35.59% 0.16 266.8)
XYZxyz(6.2111, 4.0884, 26.0477)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172E8E #8E7717
analogous
#176A8E #172E8E #3B178E
triadic
#172E8E #8E172E #2E8E17
tetradic
#172E8E #8E176A #8E7717 #178E3B
square
#172E8E #8E176A #8E7717 #178E3B
split-complementary
#172E8E #8E3B17 #6A8E17
monochromatic
#060C25 #0E1D59 #172E8E #203FC3 #3F5EE0

Accessibility & contrast

On white

11.55
#172E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#172E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172E8E
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172E8E#FFFFFF#000000##FFFFFF
##172E8E1.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00338C
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #172e8e;
/* rgb */ color: rgb(23, 46, 142);
/* oklch */ color: oklch(35.6% 0.160 266.8);
Tailwind
colors: {
  custom: {
    50: '#6b66b0',
    500: '#172e8e',
    950: '#000000',
  },
}
SCSS
$custom: #172e8e;
$custom-light: #6b66b0;
$custom-dark: #000000;
JSON
{
  "hex": "#172e8e",
  "rgb": {
    "r": 23,
    "g": 46,
    "b": 142
  },
  "hsl": {
    "h": 228.403,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35591,
    "c": 0.16031,
    "h": 266.8
  },
  "luminance": 0.04089
}

Semantic roles & 50–950 ramp

primary
#172E8E
secondary
#C0A840
accent
#CC39EF
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #172E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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