#172F7A#172F7A

#172F7A is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.8% C 0.131 H 265.9°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#172F7A
RGBrgb(23, 47, 122)
HSLhsl(225, 68%, 28%)
HSVhsv(225, 81%, 48%)
CMYKcmyk(81.1%, 61.5%, 0%, 52.2%)
CIE-LABlab(22.37, 20.46, -45.31)
CIE-LCHlch(22.37, 49.71, 294.30°)
OKLaboklab(33.84% -0.0093 -0.1309)
OKLCHoklch(33.84% 0.131 265.9)
XYZxyz(4.8815, 3.6198, 18.8500)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F7A #7A6217
analogous
#17607A #172F7A #31177A
triadic
#172F7A #7A172F #2F7A17
tetradic
#172F7A #7A1760 #7A6217 #177A31
square
#172F7A #7A1760 #7A6217 #177A31
split-complementary
#172F7A #7A3117 #607A17
monochromatic
#050A1A #0D1B47 #172F7A #2143AD #335BD9

Accessibility & contrast

On white

12.18
#172F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172F7A
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F7A#FFFFFF#000000##FFFFFF
##172F7A1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #172f7a;
/* rgb */ color: rgb(23, 47, 122);
/* oklch */ color: oklch(33.8% 0.131 265.9);
Tailwind
colors: {
  custom: {
    50: '#6667a1',
    500: '#172f7a',
    950: '#000000',
  },
}
SCSS
$custom: #172f7a;
$custom-light: #6667a1;
$custom-dark: #000000;
JSON
{
  "hex": "#172f7a",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 122
  },
  "hsl": {
    "h": 225.455,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33844,
    "c": 0.13125,
    "h": 265.9
  },
  "luminance": 0.0362
}

Semantic roles & 50–950 ramp

primary
#172F7A
secondary
#AF943E
accent
#C13DEB
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #172F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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