#172878#172878

#172878 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.2% C 0.137 H 268.0°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#172878
RGBrgb(23, 40, 120)
HSLhsl(229, 68%, 28%)
HSVhsv(229, 81%, 47%)
CMYKcmyk(80.8%, 66.7%, 0%, 52.9%)
CIE-LABlab(20.26, 24.59, -47.48)
CIE-LCHlch(20.26, 53.47, 297.38°)
OKLaboklab(32.22% -0.0047 -0.1374)
OKLCHoklch(32.22% 0.137 268)
XYZxyz(4.5011, 3.0553, 18.1182)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172878 #786717
analogous
#175878 #172878 #371778
triadic
#172878 #781728 #287817
tetradic
#172878 #781758 #786717 #177837
square
#172878 #781758 #786717 #177837
split-complementary
#172878 #783717 #587817
monochromatic
#05091A #0D1745 #172878 #2139AB #324FD8

Accessibility & contrast

On white

13.03
#172878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#172878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172878
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172878#FFFFFF#000000##FFFFFF
##1728781.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367B
Deuteranopia (green-blind)
#002C76
Tritanopia (blue-blind)
#003D4C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #172878;
/* rgb */ color: rgb(23, 40, 120);
/* oklch */ color: oklch(32.2% 0.137 268.0);
Tailwind
colors: {
  custom: {
    50: '#6661a0',
    500: '#172878',
    950: '#000000',
  },
}
SCSS
$custom: #172878;
$custom-light: #6661a0;
$custom-dark: #000000;
JSON
{
  "hex": "#172878",
  "rgb": {
    "r": 23,
    "g": 40,
    "b": 120
  },
  "hsl": {
    "h": 229.485,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32224,
    "c": 0.13746,
    "h": 268
  },
  "luminance": 0.03056
}

Semantic roles & 50–950 ramp

primary
#172878
secondary
#AD9A3E
accent
#CC3DEB
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #172878

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

Preview Lab → · Contrast checker → · Palette generator →

#172878 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva