#172E7A#172E7A

#172E7A is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.6% C 0.133 H 266.3°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#172E7A
RGBrgb(23, 46, 122)
HSLhsl(226, 68%, 28%)
HSVhsv(226, 81%, 48%)
CMYKcmyk(81.1%, 62.3%, 0%, 52.2%)
CIE-LABlab(22.09, 21.17, -45.77)
CIE-LCHlch(22.09, 50.43, 294.82°)
OKLaboklab(33.63% -0.0086 -0.1323)
OKLCHoklch(33.63% 0.133 266.3)
XYZxyz(4.8420, 3.5407, 18.8368)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172E7A #7A6317
analogous
#175F7A #172E7A #31177A
triadic
#172E7A #7A172E #2E7A17
tetradic
#172E7A #7A175F #7A6317 #177A31
square
#172E7A #7A175F #7A6317 #177A31
split-complementary
#172E7A #7A3117 #5F7A17
monochromatic
#050A1A #0D1B47 #172E7A #2141AD #3359D9

Accessibility & contrast

On white

12.29
#172E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#172E7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172E7A
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172E7A#FFFFFF#000000##FFFFFF
##172E7A1.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7D
Deuteranopia (green-blind)
#003079
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #172e7a;
/* rgb */ color: rgb(23, 46, 122);
/* oklch */ color: oklch(33.6% 0.133 266.3);
Tailwind
colors: {
  custom: {
    50: '#6666a1',
    500: '#172e7a',
    950: '#000000',
  },
}
SCSS
$custom: #172e7a;
$custom-light: #6666a1;
$custom-dark: #000000;
JSON
{
  "hex": "#172e7a",
  "rgb": {
    "r": 23,
    "g": 46,
    "b": 122
  },
  "hsl": {
    "h": 226.061,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33634,
    "c": 0.13256,
    "h": 266.3
  },
  "luminance": 0.03541
}

Semantic roles & 50–950 ramp

primary
#172E7A
secondary
#AF953E
accent
#C33DEB
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #172E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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