#172078#172078

#172078 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.7% C 0.147 H 269.9°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#172078
RGBrgb(23, 32, 120)
HSLhsl(234, 68%, 28%)
HSVhsv(234, 81%, 47%)
CMYKcmyk(80.8%, 73.3%, 0%, 52.9%)
CIE-LABlab(18.24, 30.02, -50.81)
CIE-LCHlch(18.24, 59.02, 300.58°)
OKLaboklab(30.75% -0.0002 -0.1471)
OKLCHoklch(30.75% 0.147 269.9)
XYZxyz(4.2589, 2.5708, 18.0374)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172078 #786F17
analogous
#175078 #172078 #3E1778
triadic
#172078 #781720 #207817
tetradic
#172078 #781750 #786F17 #17783E
square
#172078 #781750 #786F17 #17783E
split-complementary
#172078 #783E17 #507817
monochromatic
#05071A #0D1245 #172078 #212EAB #3241D8

Accessibility & contrast

On white

13.87
#172078 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#172078 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172078
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172078#FFFFFF#000000##FFFFFF
##1720781.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317B
Deuteranopia (green-blind)
#002876
Tritanopia (blue-blind)
#003949
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #172078;
/* rgb */ color: rgb(23, 32, 120);
/* oklch */ color: oklch(30.7% 0.147 269.9);
Tailwind
colors: {
  custom: {
    50: '#675ca0',
    500: '#172078',
    950: '#000000',
  },
}
SCSS
$custom: #172078;
$custom-light: #675ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#172078",
  "rgb": {
    "r": 23,
    "g": 32,
    "b": 120
  },
  "hsl": {
    "h": 234.433,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30746,
    "c": 0.14715,
    "h": 269.9
  },
  "luminance": 0.02571
}

Semantic roles & 50–950 ramp

primary
#172078
secondary
#ADA33E
accent
#DB3DEB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040F
muted
#7A797E

Preview Lab

Preview with #172078

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

Preview Lab → · Contrast checker → · Palette generator →

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