#172B78#172B78

#172B78 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 32.8% C 0.134 H 267.2°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#172B78
RGBrgb(23, 43, 120)
HSLhsl(228, 68%, 28%)
HSVhsv(228, 81%, 47%)
CMYKcmyk(80.8%, 64.2%, 0%, 52.9%)
CIE-LABlab(21.08, 22.48, -46.15)
CIE-LCHlch(21.08, 51.33, 295.97°)
OKLaboklab(32.82% -0.0066 -0.1334)
OKLCHoklch(32.82% 0.134 267.2)
XYZxyz(4.6062, 3.2655, 18.1532)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B78 #786417
analogous
#175B78 #172B78 #331778
triadic
#172B78 #78172B #2B7817
tetradic
#172B78 #78175B #786417 #177833
square
#172B78 #78175B #786417 #177833
split-complementary
#172B78 #783317 #5B7817
monochromatic
#05091A #0D1945 #172B78 #213DAB #3254D8

Accessibility & contrast

On white

12.70
#172B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#172B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172B78
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B78#FFFFFF#000000##FFFFFF
##172B781.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #172b78;
/* rgb */ color: rgb(23, 43, 120);
/* oklch */ color: oklch(32.8% 0.134 267.2);
Tailwind
colors: {
  custom: {
    50: '#6664a0',
    500: '#172b78',
    950: '#000000',
  },
}
SCSS
$custom: #172b78;
$custom-light: #6664a0;
$custom-dark: #000000;
JSON
{
  "hex": "#172b78",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 120
  },
  "hsl": {
    "h": 227.629,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32824,
    "c": 0.1336,
    "h": 267.2
  },
  "luminance": 0.03266
}

Semantic roles & 50–950 ramp

primary
#172B78
secondary
#AD963E
accent
#C73DEB
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #172B78

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

Preview Lab → · Contrast checker → · Palette generator →

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