#172778#172778

#172778 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.0% C 0.139 H 268.3°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#172778
RGBrgb(23, 39, 120)
HSLhsl(230, 68%, 28%)
HSVhsv(230, 81%, 47%)
CMYKcmyk(80.8%, 67.5%, 0%, 52.9%)
CIE-LABlab(20.00, 25.28, -47.92)
CIE-LCHlch(20.00, 54.18, 297.82°)
OKLaboklab(32.03% -0.0041 -0.1387)
OKLCHoklch(32.03% 0.139 268.3)
XYZxyz(4.4679, 2.9888, 18.1071)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172778 #786817
analogous
#175778 #172778 #371778
triadic
#172778 #781727 #277817
tetradic
#172778 #781757 #786817 #177837
square
#172778 #781757 #786817 #177837
split-complementary
#172778 #783717 #577817
monochromatic
#05081A #0D1645 #172778 #2138AB #324DD8

Accessibility & contrast

On white

13.14
#172778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#172778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172778
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172778#FFFFFF#000000##FFFFFF
##1727781.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357B
Deuteranopia (green-blind)
#002C76
Tritanopia (blue-blind)
#003D4B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #172778;
/* rgb */ color: rgb(23, 39, 120);
/* oklch */ color: oklch(32.0% 0.139 268.3);
Tailwind
colors: {
  custom: {
    50: '#6661a0',
    500: '#172778',
    950: '#000000',
  },
}
SCSS
$custom: #172778;
$custom-light: #6661a0;
$custom-dark: #000000;
JSON
{
  "hex": "#172778",
  "rgb": {
    "r": 23,
    "g": 39,
    "b": 120
  },
  "hsl": {
    "h": 230.103,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32029,
    "c": 0.13872,
    "h": 268.3
  },
  "luminance": 0.02989
}

Semantic roles & 50–950 ramp

primary
#172778
secondary
#AD9B3E
accent
#CE3DEB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #172778

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

Preview Lab → · Contrast checker → · Palette generator →

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