#172E7E#172E7E

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

Color values

HEX#172E7E
RGBrgb(23, 46, 126)
HSLhsl(227, 69%, 29%)
HSVhsv(227, 82%, 49%)
CMYKcmyk(81.7%, 63.5%, 0%, 50.6%)
CIE-LABlab(22.45, 22.79, -47.72)
CIE-LCHlch(22.45, 52.88, 295.53°)
OKLaboklab(34.01% -0.0086 -0.138)
OKLCHoklch(34.01% 0.138 266.4)
XYZxyz(5.0949, 3.6419, 20.1691)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172E7E #7E6717
analogous
#17627E #172E7E #34177E
triadic
#172E7E #7E172E #2E7E17
tetradic
#172E7E #7E1762 #7E6717 #177E34
square
#172E7E #7E1762 #7E6717 #177E34
split-complementary
#172E7E #7E3417 #627E17
monochromatic
#05091A #0E1B4A #172E7E #2041B2 #355ADA

Accessibility & contrast

On white

12.15
#172E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#172E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172E7E
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172E7E#FFFFFF#000000##FFFFFF
##172E7E1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #172e7e;
/* rgb */ color: rgb(23, 46, 126);
/* oklch */ color: oklch(34.0% 0.138 266.4);
Tailwind
colors: {
  custom: {
    50: '#6766a4',
    500: '#172e7e',
    950: '#000000',
  },
}
SCSS
$custom: #172e7e;
$custom-light: #6766a4;
$custom-dark: #000000;
JSON
{
  "hex": "#172e7e",
  "rgb": {
    "r": 23,
    "g": 46,
    "b": 126
  },
  "hsl": {
    "h": 226.602,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.34013,
    "c": 0.13826,
    "h": 266.4
  },
  "luminance": 0.03643
}

Semantic roles & 50–950 ramp

primary
#172E7E
secondary
#B3993E
accent
#C53CEC
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #172E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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