#172C78#172C78

#172C78 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.0% C 0.132 H 266.8°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#172C78
RGBrgb(23, 44, 120)
HSLhsl(227, 68%, 28%)
HSVhsv(227, 81%, 47%)
CMYKcmyk(80.8%, 63.3%, 0%, 52.9%)
CIE-LABlab(21.35, 21.77, -45.70)
CIE-LCHlch(21.35, 50.62, 295.47°)
OKLaboklab(33.03% -0.0073 -0.1321)
OKLCHoklch(33.03% 0.132 266.8)
XYZxyz(4.6430, 3.3391, 18.1655)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C78 #786317
analogous
#175C78 #172C78 #321778
triadic
#172C78 #78172C #2C7817
tetradic
#172C78 #78175C #786317 #177832
square
#172C78 #78175C #786317 #177832
split-complementary
#172C78 #783217 #5C7817
monochromatic
#05091A #0D1945 #172C78 #213FAB #3256D8

Accessibility & contrast

On white

12.59
#172C78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#172C78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172C78
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172C78#FFFFFF#000000##FFFFFF
##172C781.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387B
Deuteranopia (green-blind)
#002F77
Tritanopia (blue-blind)
#00404D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #172c78;
/* rgb */ color: rgb(23, 44, 120);
/* oklch */ color: oklch(33.0% 0.132 266.8);
Tailwind
colors: {
  custom: {
    50: '#6564a0',
    500: '#172c78',
    950: '#000000',
  },
}
SCSS
$custom: #172c78;
$custom-light: #6564a0;
$custom-dark: #000000;
JSON
{
  "hex": "#172c78",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 120
  },
  "hsl": {
    "h": 227.01,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3303,
    "c": 0.13231,
    "h": 266.8
  },
  "luminance": 0.0334
}

Semantic roles & 50–950 ramp

primary
#172C78
secondary
#AD953E
accent
#C53DEB
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050F
muted
#7A7A7E

Preview Lab

Preview with #172C78

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

Preview Lab → · Contrast checker → · Palette generator →

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