#172E8D#172E8D

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

Color values

HEX#172E8D
RGBrgb(23, 46, 141)
HSLhsl(228, 72%, 32%)
HSVhsv(228, 84%, 55%)
CMYKcmyk(83.7%, 67.4%, 0%, 44.7%)
CIE-LABlab(23.86, 28.76, -54.80)
CIE-LCHlch(23.86, 61.88, 297.69°)
OKLaboklab(35.49% -0.0089 -0.1587)
OKLCHoklch(35.49% 0.159 266.8)
XYZxyz(6.1364, 4.0585, 25.6541)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172E8D #8D7617
analogous
#17698D #172E8D #3B178D
triadic
#172E8D #8D172E #2E8D17
tetradic
#172E8D #8D1769 #8D7617 #178D3B
square
#172E8D #8D1769 #8D7617 #178D3B
split-complementary
#172E8D #8D3B17 #698D17
monochromatic
#060C24 #0E1D58 #172E8D #203FC2 #3F5EE0

Accessibility & contrast

On white

11.59
#172E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#172E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172E8D
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172E8D#FFFFFF#000000##FFFFFF
##172E8D1.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#00338B
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #172e8d;
/* rgb */ color: rgb(23, 46, 141);
/* oklch */ color: oklch(35.5% 0.159 266.8);
Tailwind
colors: {
  custom: {
    50: '#6b66af',
    500: '#172e8d',
    950: '#000000',
  },
}
SCSS
$custom: #172e8d;
$custom-light: #6b66af;
$custom-dark: #000000;
JSON
{
  "hex": "#172e8d",
  "rgb": {
    "r": 23,
    "g": 46,
    "b": 141
  },
  "hsl": {
    "h": 228.305,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3549,
    "c": 0.15896,
    "h": 266.8
  },
  "luminance": 0.04059
}

Semantic roles & 50–950 ramp

primary
#172E8D
secondary
#C0A740
accent
#CB39EF
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #172E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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