#172C80#172C80

#172C80 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.8% C 0.144 H 267.1°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#172C80
RGBrgb(23, 44, 128)
HSLhsl(228, 70%, 30%)
HSVhsv(228, 82%, 50%)
CMYKcmyk(82%, 65.6%, 0%, 49.8%)
CIE-LABlab(22.09, 24.99, -49.56)
CIE-LCHlch(22.09, 55.51, 296.76°)
OKLaboklab(33.81% -0.0074 -0.1434)
OKLCHoklch(33.81% 0.144 267.1)
XYZxyz(5.1490, 3.5414, 20.8301)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C80 #806B17
analogous
#176180 #172C80 #371780
triadic
#172C80 #80172C #2C8017
tetradic
#172C80 #801761 #806B17 #178037
square
#172C80 #801761 #806B17 #178037
split-complementary
#172C80 #803717 #618017
monochromatic
#05091A #0E1A4C #172C80 #203EB4 #3657DB

Accessibility & contrast

On white

12.29
#172C80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172C80
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172C80#FFFFFF#000000##FFFFFF
##172C801.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A83
Deuteranopia (green-blind)
#00307E
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #172c80;
/* rgb */ color: rgb(23, 44, 128);
/* oklch */ color: oklch(33.8% 0.144 267.1);
Tailwind
colors: {
  custom: {
    50: '#6865a6',
    500: '#172c80',
    950: '#000000',
  },
}
SCSS
$custom: #172c80;
$custom-light: #6865a6;
$custom-dark: #000000;
JSON
{
  "hex": "#172c80",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 128
  },
  "hsl": {
    "h": 228,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33806,
    "c": 0.14362,
    "h": 267.1
  },
  "luminance": 0.03542
}

Semantic roles & 50–950 ramp

primary
#172C80
secondary
#B49D3E
accent
#C93BEC
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #172C80

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

Preview Lab → · Contrast checker → · Palette generator →

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