#172C81#172C81

#172C81 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.9% C 0.145 H 267.1°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#172C81
RGBrgb(23, 44, 129)
HSLhsl(228, 70%, 30%)
HSVhsv(228, 82%, 51%)
CMYKcmyk(82.2%, 65.9%, 0%, 49.4%)
CIE-LABlab(22.19, 25.39, -50.04)
CIE-LCHlch(22.19, 56.11, 296.91°)
OKLaboklab(33.91% -0.0074 -0.1448)
OKLCHoklch(33.91% 0.145 267.1)
XYZxyz(5.2151, 3.5679, 21.1784)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C81 #816C17
analogous
#176181 #172C81 #371781
triadic
#172C81 #81172C #2C8117
tetradic
#172C81 #811761 #816C17 #178137
square
#172C81 #811761 #816C17 #178137
split-complementary
#172C81 #813717 #618117
monochromatic
#05091A #0E1A4D #172C81 #203EB5 #3758DB

Accessibility & contrast

On white

12.25
#172C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172C81
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172C81#FFFFFF#000000##FFFFFF
##172C811.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A84
Deuteranopia (green-blind)
#00307F
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #172c81;
/* rgb */ color: rgb(23, 44, 129);
/* oklch */ color: oklch(33.9% 0.145 267.1);
Tailwind
colors: {
  custom: {
    50: '#6865a6',
    500: '#172c81',
    950: '#000000',
  },
}
SCSS
$custom: #172c81;
$custom-light: #6865a6;
$custom-dark: #000000;
JSON
{
  "hex": "#172c81",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 129
  },
  "hsl": {
    "h": 228.113,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33905,
    "c": 0.14501,
    "h": 267.1
  },
  "luminance": 0.03569
}

Semantic roles & 50–950 ramp

primary
#172C81
secondary
#B59E3E
accent
#C93BED
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #172C81

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

Preview Lab → · Contrast checker → · Palette generator →

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