#172A77#172A77

#172A77 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.5% C 0.133 H 267.4°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#172A77
RGBrgb(23, 42, 119)
HSLhsl(228, 68%, 28%)
HSVhsv(228, 81%, 47%)
CMYKcmyk(80.7%, 64.7%, 0%, 53.3%)
CIE-LABlab(20.71, 22.78, -46.11)
CIE-LCHlch(20.71, 51.43, 296.29°)
OKLaboklab(32.52% -0.006 -0.1333)
OKLCHoklch(32.52% 0.133 267.4)
XYZxyz(4.5099, 3.1695, 17.8233)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A77 #776417
analogous
#175A77 #172A77 #341777
triadic
#172A77 #77172A #2A7717
tetradic
#172A77 #77175A #776417 #177734
square
#172A77 #77175A #776417 #177734
split-complementary
#172A77 #773417 #5A7717
monochromatic
#05091A #0D1844 #172A77 #213CAA #3152D7

Accessibility & contrast

On white

12.85
#172A77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#172A77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A77
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A77#FFFFFF#000000##FFFFFF
##172A771.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367A
Deuteranopia (green-blind)
#002D76
Tritanopia (blue-blind)
#003E4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #172a77;
/* rgb */ color: rgb(23, 42, 119);
/* oklch */ color: oklch(32.5% 0.133 267.4);
Tailwind
colors: {
  custom: {
    50: '#65639f',
    500: '#172a77',
    950: '#000000',
  },
}
SCSS
$custom: #172a77;
$custom-light: #65639f;
$custom-dark: #000000;
JSON
{
  "hex": "#172a77",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 119
  },
  "hsl": {
    "h": 228.125,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32524,
    "c": 0.13347,
    "h": 267.4
  },
  "luminance": 0.0317
}

Semantic roles & 50–950 ramp

primary
#172A77
secondary
#AC963E
accent
#C83DEA
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #172A77

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

Preview Lab → · Contrast checker → · Palette generator →

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