#172978#172978

#172978 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.4% C 0.136 H 267.8°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#172978
RGBrgb(23, 41, 120)
HSLhsl(229, 68%, 28%)
HSVhsv(229, 81%, 47%)
CMYKcmyk(80.8%, 65.8%, 0%, 52.9%)
CIE-LABlab(20.53, 23.89, -47.04)
CIE-LCHlch(20.53, 52.76, 296.92°)
OKLaboklab(32.42% -0.0053 -0.1361)
OKLCHoklch(32.42% 0.136 267.8)
XYZxyz(4.5353, 3.1236, 18.1295)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172978 #786617
analogous
#175978 #172978 #351778
triadic
#172978 #781729 #297817
tetradic
#172978 #781759 #786617 #177835
square
#172978 #781759 #786617 #177835
split-complementary
#172978 #783517 #597817
monochromatic
#05091A #0D1745 #172978 #213BAB #3251D8

Accessibility & contrast

On white

12.92
#172978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#172978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172978
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172978#FFFFFF#000000##FFFFFF
##1729781.0012.921.6212.92
#FFFFFF12.921.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #172978;
/* rgb */ color: rgb(23, 41, 120);
/* oklch */ color: oklch(32.4% 0.136 267.8);
Tailwind
colors: {
  custom: {
    50: '#6662a0',
    500: '#172978',
    950: '#000000',
  },
}
SCSS
$custom: #172978;
$custom-light: #6662a0;
$custom-dark: #000000;
JSON
{
  "hex": "#172978",
  "rgb": {
    "r": 23,
    "g": 41,
    "b": 120
  },
  "hsl": {
    "h": 228.866,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32421,
    "c": 0.13618,
    "h": 267.8
  },
  "luminance": 0.03124
}

Semantic roles & 50–950 ramp

primary
#172978
secondary
#AD983E
accent
#CA3DEB
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #172978

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

Preview Lab → · Contrast checker → · Palette generator →

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