#172A76#172A76

#172A76 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.4% C 0.132 H 267.4°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#172A76
RGBrgb(23, 42, 118)
HSLhsl(228, 67%, 28%)
HSVhsv(228, 81%, 46%)
CMYKcmyk(80.5%, 64.4%, 0%, 53.7%)
CIE-LABlab(20.62, 22.38, -45.62)
CIE-LCHlch(20.62, 50.82, 296.13°)
OKLaboklab(32.43% -0.0059 -0.1319)
OKLCHoklch(32.43% 0.132 267.4)
XYZxyz(4.4502, 3.1456, 17.5086)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A76 #766317
analogous
#175976 #172A76 #331776
triadic
#172A76 #76172A #2A7617
tetradic
#172A76 #761759 #766317 #177633
square
#172A76 #761759 #766317 #177633
split-complementary
#172A76 #763317 #597617
monochromatic
#05091A #0D1843 #172A76 #213CA9 #3152D7

Accessibility & contrast

On white

12.89
#172A76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#172A76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A76
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A76#FFFFFF#000000##FFFFFF
##172A761.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003678
Deuteranopia (green-blind)
#002D75
Tritanopia (blue-blind)
#003E4B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #172a76;
/* rgb */ color: rgb(23, 42, 118);
/* oklch */ color: oklch(32.4% 0.132 267.4);
Tailwind
colors: {
  custom: {
    50: '#65639e',
    500: '#172a76',
    950: '#000000',
  },
}
SCSS
$custom: #172a76;
$custom-light: #65639e;
$custom-dark: #000000;
JSON
{
  "hex": "#172a76",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 118
  },
  "hsl": {
    "h": 228,
    "s": 67.376,
    "l": 27.647
  },
  "oklch": {
    "l": 0.32427,
    "c": 0.13204,
    "h": 267.4
  },
  "luminance": 0.03146
}

Semantic roles & 50–950 ramp

primary
#172A76
secondary
#AB953E
accent
#C83EEA
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #172A76

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

Preview Lab → · Contrast checker → · Palette generator →

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