#172A78#172A78

#172A78 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.6% C 0.135 H 267.5°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#172A78
RGBrgb(23, 42, 120)
HSLhsl(228, 68%, 28%)
HSVhsv(228, 81%, 47%)
CMYKcmyk(80.8%, 65%, 0%, 52.9%)
CIE-LABlab(20.80, 23.18, -46.60)
CIE-LCHlch(20.80, 52.05, 296.45°)
OKLaboklab(32.62% -0.006 -0.1348)
OKLCHoklch(32.62% 0.135 267.5)
XYZxyz(4.5703, 3.1936, 18.1412)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A78 #786517
analogous
#175A78 #172A78 #341778
triadic
#172A78 #78172A #2A7817
tetradic
#172A78 #78175A #786517 #177834
square
#172A78 #78175A #786517 #177834
split-complementary
#172A78 #783417 #5A7817
monochromatic
#05091A #0D1845 #172A78 #213CAB #3252D8

Accessibility & contrast

On white

12.81
#172A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#172A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A78
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A78#FFFFFF#000000##FFFFFF
##172A781.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377B
Deuteranopia (green-blind)
#002E77
Tritanopia (blue-blind)
#003E4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #172a78;
/* rgb */ color: rgb(23, 42, 120);
/* oklch */ color: oklch(32.6% 0.135 267.5);
Tailwind
colors: {
  custom: {
    50: '#6663a0',
    500: '#172a78',
    950: '#000000',
  },
}
SCSS
$custom: #172a78;
$custom-light: #6663a0;
$custom-dark: #000000;
JSON
{
  "hex": "#172a78",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 120
  },
  "hsl": {
    "h": 228.247,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32622,
    "c": 0.1349,
    "h": 267.5
  },
  "luminance": 0.03194
}

Semantic roles & 50–950 ramp

primary
#172A78
secondary
#AD973E
accent
#C93DEB
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #172A78

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

Preview Lab → · Contrast checker → · Palette generator →

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