#172E80#172E80

#172E80 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.2% C 0.141 H 266.5°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#172E80
RGBrgb(23, 46, 128)
HSLhsl(227, 70%, 30%)
HSVhsv(227, 82%, 50%)
CMYKcmyk(82%, 64.1%, 0%, 49.8%)
CIE-LABlab(22.63, 23.60, -48.68)
CIE-LCHlch(22.63, 54.10, 295.86°)
OKLaboklab(34.21% -0.0086 -0.1408)
OKLCHoklch(34.21% 0.141 266.5)
XYZxyz(5.2253, 3.6941, 20.8555)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172E80 #806917
analogous
#176380 #172E80 #351780
triadic
#172E80 #80172E #2E8017
tetradic
#172E80 #801763 #806917 #178035
square
#172E80 #801763 #806917 #178035
split-complementary
#172E80 #803517 #638017
monochromatic
#05091A #0E1B4C #172E80 #2041B4 #365ADB

Accessibility & contrast

On white

12.08
#172E80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#172E80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172E80
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172E80#FFFFFF#000000##FFFFFF
##172E801.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B83
Deuteranopia (green-blind)
#00317E
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #172e80;
/* rgb */ color: rgb(23, 46, 128);
/* oklch */ color: oklch(34.2% 0.141 266.5);
Tailwind
colors: {
  custom: {
    50: '#6866a6',
    500: '#172e80',
    950: '#000000',
  },
}
SCSS
$custom: #172e80;
$custom-light: #6866a6;
$custom-dark: #000000;
JSON
{
  "hex": "#172e80",
  "rgb": {
    "r": 23,
    "g": 46,
    "b": 128
  },
  "hsl": {
    "h": 226.857,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.34205,
    "c": 0.14108,
    "h": 266.5
  },
  "luminance": 0.03695
}

Semantic roles & 50–950 ramp

primary
#172E80
secondary
#B49B3E
accent
#C63BEC
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #172E80

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

Preview Lab → · Contrast checker → · Palette generator →

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