#172E81#172E81

#172E81 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.3% C 0.142 H 266.5°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#172E81
RGBrgb(23, 46, 129)
HSLhsl(227, 70%, 30%)
HSVhsv(227, 82%, 51%)
CMYKcmyk(82.2%, 64.3%, 0%, 49.4%)
CIE-LABlab(22.73, 24.00, -49.16)
CIE-LCHlch(22.73, 54.70, 296.02°)
OKLaboklab(34.3% -0.0086 -0.1422)
OKLCHoklch(34.3% 0.142 266.5)
XYZxyz(5.2914, 3.7205, 21.2039)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172E81 #816A17
analogous
#176381 #172E81 #351781
triadic
#172E81 #81172E #2E8117
tetradic
#172E81 #811763 #816A17 #178135
square
#172E81 #811763 #816A17 #178135
split-complementary
#172E81 #813517 #638117
monochromatic
#05091A #0E1B4D #172E81 #2041B5 #375BDB

Accessibility & contrast

On white

12.04
#172E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#172E81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172E81
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172E81#FFFFFF#000000##FFFFFF
##172E811.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B84
Deuteranopia (green-blind)
#00317F
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #172e81;
/* rgb */ color: rgb(23, 46, 129);
/* oklch */ color: oklch(34.3% 0.142 266.5);
Tailwind
colors: {
  custom: {
    50: '#6866a6',
    500: '#172e81',
    950: '#000000',
  },
}
SCSS
$custom: #172e81;
$custom-light: #6866a6;
$custom-dark: #000000;
JSON
{
  "hex": "#172e81",
  "rgb": {
    "r": 23,
    "g": 46,
    "b": 129
  },
  "hsl": {
    "h": 226.981,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.34302,
    "c": 0.14248,
    "h": 266.5
  },
  "luminance": 0.03721
}

Semantic roles & 50–950 ramp

primary
#172E81
secondary
#B59C3E
accent
#C63BED
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #172E81

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

Preview Lab → · Contrast checker → · Palette generator →

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