#172A83#172A83

#172A83 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.7% C 0.150 H 267.6°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#172A83
RGBrgb(23, 42, 131)
HSLhsl(229, 70%, 30%)
HSVhsv(229, 82%, 51%)
CMYKcmyk(82.4%, 67.9%, 0%, 48.6%)
CIE-LABlab(21.86, 27.56, -51.84)
CIE-LCHlch(21.86, 58.71, 298.00°)
OKLaboklab(33.72% -0.0063 -0.1501)
OKLCHoklch(33.72% 0.15 267.6)
XYZxyz(5.2766, 3.4762, 21.8612)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A83 #837017
analogous
#176083 #172A83 #3A1783
triadic
#172A83 #83172A #2A8317
tetradic
#172A83 #831760 #837017 #17833A
square
#172A83 #831760 #837017 #17833A
split-complementary
#172A83 #833A17 #608317
monochromatic
#05091B #0E194F #172A83 #203BB7 #3855DC

Accessibility & contrast

On white

12.39
#172A83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#172A83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A83
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A83#FFFFFF#000000##FFFFFF
##172A831.0012.391.7012.39
#FFFFFF12.391.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A86
Deuteranopia (green-blind)
#002F81
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #172a83;
/* rgb */ color: rgb(23, 42, 131);
/* oklch */ color: oklch(33.7% 0.150 267.6);
Tailwind
colors: {
  custom: {
    50: '#6963a8',
    500: '#172a83',
    950: '#000000',
  },
}
SCSS
$custom: #172a83;
$custom-light: #6963a8;
$custom-dark: #000000;
JSON
{
  "hex": "#172a83",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 131
  },
  "hsl": {
    "h": 229.444,
    "s": 70.13,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33721,
    "c": 0.15023,
    "h": 267.6
  },
  "luminance": 0.03477
}

Semantic roles & 50–950 ramp

primary
#172A83
secondary
#B7A23F
accent
#CE3BED
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#070510
muted
#7A797F

Preview Lab

Preview with #172A83

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

Preview Lab → · Contrast checker → · Palette generator →

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