#172E7D#172E7D

#172E7D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.9% C 0.137 H 266.4°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#172E7D
RGBrgb(23, 46, 125)
HSLhsl(226, 69%, 29%)
HSVhsv(226, 82%, 49%)
CMYKcmyk(81.6%, 63.2%, 0%, 51%)
CIE-LABlab(22.36, 22.39, -47.23)
CIE-LCHlch(22.36, 52.27, 295.36°)
OKLaboklab(33.92% -0.0086 -0.1366)
OKLCHoklch(33.92% 0.137 266.4)
XYZxyz(5.0307, 3.6162, 19.8309)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172E7D #7D6617
analogous
#17617D #172E7D #33177D
triadic
#172E7D #7D172E #2E7D17
tetradic
#172E7D #7D1761 #7D6617 #177D33
square
#172E7D #7D1761 #7D6617 #177D33
split-complementary
#172E7D #7D3317 #617D17
monochromatic
#050A1A #0D1B49 #172E7D #2141B1 #355ADA

Accessibility & contrast

On white

12.19
#172E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#172E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172E7D
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172E7D#FFFFFF#000000##FFFFFF
##172E7D1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #172e7d;
/* rgb */ color: rgb(23, 46, 125);
/* oklch */ color: oklch(33.9% 0.137 266.4);
Tailwind
colors: {
  custom: {
    50: '#6766a3',
    500: '#172e7d',
    950: '#000000',
  },
}
SCSS
$custom: #172e7d;
$custom-light: #6766a3;
$custom-dark: #000000;
JSON
{
  "hex": "#172e7d",
  "rgb": {
    "r": 23,
    "g": 46,
    "b": 125
  },
  "hsl": {
    "h": 226.471,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33918,
    "c": 0.13684,
    "h": 266.4
  },
  "luminance": 0.03617
}

Semantic roles & 50–950 ramp

primary
#172E7D
secondary
#B2983E
accent
#C43CEC
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #172E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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