#172F80#172F80

#172F80 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.4% C 0.140 H 266.2°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#172F80
RGBrgb(23, 47, 128)
HSLhsl(226, 70%, 30%)
HSVhsv(226, 82%, 50%)
CMYKcmyk(82%, 63.3%, 0%, 49.8%)
CIE-LABlab(22.91, 22.90, -48.23)
CIE-LCHlch(22.91, 53.39, 295.39°)
OKLaboklab(34.41% -0.0092 -0.1395)
OKLCHoklch(34.41% 0.14 266.2)
XYZxyz(5.2648, 3.7731, 20.8687)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F80 #806817
analogous
#176380 #172F80 #341780
triadic
#172F80 #80172F #2F8017
tetradic
#172F80 #801763 #806817 #178034
square
#172F80 #801763 #806817 #178034
split-complementary
#172F80 #803417 #638017
monochromatic
#050A1A #0E1C4C #172F80 #2042B4 #365CDB

Accessibility & contrast

On white

11.97
#172F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#172F80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F80
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F80#FFFFFF#000000##FFFFFF
##172F801.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C83
Deuteranopia (green-blind)
#00327E
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #172f80;
/* rgb */ color: rgb(23, 47, 128);
/* oklch */ color: oklch(34.4% 0.140 266.2);
Tailwind
colors: {
  custom: {
    50: '#6767a6',
    500: '#172f80',
    950: '#000000',
  },
}
SCSS
$custom: #172f80;
$custom-light: #6767a6;
$custom-dark: #000000;
JSON
{
  "hex": "#172f80",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 128
  },
  "hsl": {
    "h": 226.286,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.34408,
    "c": 0.1398,
    "h": 266.2
  },
  "luminance": 0.03774
}

Semantic roles & 50–950 ramp

primary
#172F80
secondary
#B4993E
accent
#C43BEC
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #172F80

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

Preview Lab → · Contrast checker → · Palette generator →

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