#172F8E#172F8E

#172F8E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.8% C 0.159 H 266.6°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#172F8E
RGBrgb(23, 47, 142)
HSLhsl(228, 72%, 32%)
HSVhsv(228, 84%, 56%)
CMYKcmyk(83.8%, 66.9%, 0%, 44.3%)
CIE-LABlab(24.22, 28.47, -54.84)
CIE-LCHlch(24.22, 61.79, 297.44°)
OKLaboklab(35.78% -0.0095 -0.1588)
OKLCHoklch(35.78% 0.159 266.6)
XYZxyz(6.2506, 4.1674, 26.0609)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F8E #8E7617
analogous
#176B8E #172F8E #3A178E
triadic
#172F8E #8E172F #2F8E17
tetradic
#172F8E #8E176B #8E7617 #178E3A
square
#172F8E #8E176B #8E7617 #178E3A
split-complementary
#172F8E #8E3A17 #6B8E17
monochromatic
#060C25 #0E1E59 #172F8E #2040C3 #3F60E0

Accessibility & contrast

On white

11.45
#172F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#172F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F8E
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F8E#FFFFFF#000000##FFFFFF
##172F8E1.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00348C
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #172f8e;
/* rgb */ color: rgb(23, 47, 142);
/* oklch */ color: oklch(35.8% 0.159 266.6);
Tailwind
colors: {
  custom: {
    50: '#6b67b0',
    500: '#172f8e',
    950: '#000000',
  },
}
SCSS
$custom: #172f8e;
$custom-light: #6b67b0;
$custom-dark: #000000;
JSON
{
  "hex": "#172f8e",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 142
  },
  "hsl": {
    "h": 227.899,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35779,
    "c": 0.1591,
    "h": 266.6
  },
  "luminance": 0.04168
}

Semantic roles & 50–950 ramp

primary
#172F8E
secondary
#C0A740
accent
#CA39EF
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80

Preview Lab

Preview with #172F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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