#172F78#172F78

#172F78 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.7% C 0.128 H 265.8°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#172F78
RGBrgb(23, 47, 120)
HSLhsl(225, 68%, 28%)
HSVhsv(225, 81%, 47%)
CMYKcmyk(80.8%, 60.8%, 0%, 52.9%)
CIE-LABlab(22.20, 19.64, -44.32)
CIE-LCHlch(22.20, 48.48, 293.90°)
OKLaboklab(33.66% -0.0094 -0.128)
OKLCHoklch(33.66% 0.128 265.8)
XYZxyz(4.7588, 3.5707, 18.2041)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F78 #786017
analogous
#175F78 #172F78 #301778
triadic
#172F78 #78172F #2F7817
tetradic
#172F78 #78175F #786017 #177830
square
#172F78 #78175F #786017 #177830
split-complementary
#172F78 #783017 #5F7817
monochromatic
#050A1A #0D1B45 #172F78 #2143AB #325BD8

Accessibility & contrast

On white

12.25
#172F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#172F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F78
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F78#FFFFFF#000000##FFFFFF
##172F781.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7A
Deuteranopia (green-blind)
#003177
Tritanopia (blue-blind)
#00414E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #172f78;
/* rgb */ color: rgb(23, 47, 120);
/* oklch */ color: oklch(33.7% 0.128 265.8);
Tailwind
colors: {
  custom: {
    50: '#6567a0',
    500: '#172f78',
    950: '#000000',
  },
}
SCSS
$custom: #172f78;
$custom-light: #6567a0;
$custom-dark: #000000;
JSON
{
  "hex": "#172f78",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 120
  },
  "hsl": {
    "h": 225.155,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3366,
    "c": 0.12836,
    "h": 265.8
  },
  "luminance": 0.03571
}

Semantic roles & 50–950 ramp

primary
#172F78
secondary
#AD923E
accent
#C03DEB
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060F
muted
#7A7A7E

Preview Lab

Preview with #172F78

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

Preview Lab → · Contrast checker → · Palette generator →

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