#172E78#172E78

#172E78 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.4% C 0.130 H 266.2°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#172E78
RGBrgb(23, 46, 120)
HSLhsl(226, 68%, 28%)
HSVhsv(226, 81%, 47%)
CMYKcmyk(80.8%, 61.7%, 0%, 52.9%)
CIE-LABlab(21.91, 20.35, -44.78)
CIE-LCHlch(21.91, 49.19, 294.44°)
OKLaboklab(33.45% -0.0087 -0.1294)
OKLCHoklch(33.45% 0.13 266.2)
XYZxyz(4.7193, 3.4917, 18.1909)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172E78 #786117
analogous
#175E78 #172E78 #301778
triadic
#172E78 #78172E #2E7817
tetradic
#172E78 #78175E #786117 #177830
square
#172E78 #78175E #786117 #177830
split-complementary
#172E78 #783017 #5E7817
monochromatic
#050A1A #0D1A45 #172E78 #2142AB #3259D8

Accessibility & contrast

On white

12.36
#172E78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#172E78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172E78
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172E78#FFFFFF#000000##FFFFFF
##172E781.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397A
Deuteranopia (green-blind)
#003077
Tritanopia (blue-blind)
#00414E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #172e78;
/* rgb */ color: rgb(23, 46, 120);
/* oklch */ color: oklch(33.4% 0.130 266.2);
Tailwind
colors: {
  custom: {
    50: '#6566a0',
    500: '#172e78',
    950: '#000000',
  },
}
SCSS
$custom: #172e78;
$custom-light: #6566a0;
$custom-dark: #000000;
JSON
{
  "hex": "#172e78",
  "rgb": {
    "r": 23,
    "g": 46,
    "b": 120
  },
  "hsl": {
    "h": 225.773,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33447,
    "c": 0.12968,
    "h": 266.2
  },
  "luminance": 0.03492
}

Semantic roles & 50–950 ramp

primary
#172E78
secondary
#AD933E
accent
#C23DEB
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050F
muted
#7A7A7E

Preview Lab

Preview with #172E78

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

Preview Lab → · Contrast checker → · Palette generator →

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