#172A79#172A79

#172A79 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.7% C 0.136 H 267.5°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#172A79
RGBrgb(23, 42, 121)
HSLhsl(228, 68%, 28%)
HSVhsv(228, 81%, 47%)
CMYKcmyk(81%, 65.3%, 0%, 52.5%)
CIE-LABlab(20.90, 23.59, -47.08)
CIE-LCHlch(20.90, 52.66, 296.61°)
OKLaboklab(32.72% -0.006 -0.1362)
OKLCHoklch(32.72% 0.136 267.5)
XYZxyz(4.6313, 3.2180, 18.4625)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A79 #796617
analogous
#175B79 #172A79 #351779
triadic
#172A79 #79172A #2A7917
tetradic
#172A79 #79175B #796617 #177935
square
#172A79 #79175B #796617 #177935
split-complementary
#172A79 #793517 #5B7917
monochromatic
#05091A #0D1846 #172A79 #213CAC #3252D8

Accessibility & contrast

On white

12.78
#172A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#172A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A79
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A79#FFFFFF#000000##FFFFFF
##172A791.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377C
Deuteranopia (green-blind)
#002E78
Tritanopia (blue-blind)
#003F4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #172a79;
/* rgb */ color: rgb(23, 42, 121);
/* oklch */ color: oklch(32.7% 0.136 267.5);
Tailwind
colors: {
  custom: {
    50: '#6663a0',
    500: '#172a79',
    950: '#000000',
  },
}
SCSS
$custom: #172a79;
$custom-light: #6663a0;
$custom-dark: #000000;
JSON
{
  "hex": "#172a79",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 121
  },
  "hsl": {
    "h": 228.367,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3272,
    "c": 0.13632,
    "h": 267.5
  },
  "luminance": 0.03219
}

Semantic roles & 50–950 ramp

primary
#172A79
secondary
#AE983E
accent
#C93DEB
background
#F6F5FA
surface
#EBEAF3
border
#C6C6CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #172A79

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

Preview Lab → · Contrast checker → · Palette generator →

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