#172A73#172A73

#172A73 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.1% C 0.128 H 267.3°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#172A73
RGBrgb(23, 42, 115)
HSLhsl(228, 67%, 27%)
HSVhsv(228, 80%, 45%)
CMYKcmyk(80%, 63.5%, 0%, 54.9%)
CIE-LABlab(20.34, 21.16, -44.15)
CIE-LCHlch(20.34, 48.96, 295.61°)
OKLaboklab(32.14% -0.0059 -0.1276)
OKLCHoklch(32.14% 0.128 267.3)
XYZxyz(4.2747, 3.0754, 16.5847)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A73 #736017
analogous
#175873 #172A73 #321773
triadic
#172A73 #73172A #2A7317
tetradic
#172A73 #731758 #736017 #177332
square
#172A73 #731758 #736017 #177332
split-complementary
#172A73 #733217 #587317
monochromatic
#05091A #0D1740 #172A73 #213DA6 #2F51D5

Accessibility & contrast

On white

13.00
#172A73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#172A73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A73
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A73#FFFFFF#000000##FFFFFF
##172A731.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003575
Deuteranopia (green-blind)
#002D72
Tritanopia (blue-blind)
#003D4A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #172a73;
/* rgb */ color: rgb(23, 42, 115);
/* oklch */ color: oklch(32.1% 0.128 267.3);
Tailwind
colors: {
  custom: {
    50: '#64639c',
    500: '#172a73',
    950: '#000000',
  },
}
SCSS
$custom: #172a73;
$custom-light: #64639c;
$custom-dark: #000000;
JSON
{
  "hex": "#172a73",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 115
  },
  "hsl": {
    "h": 227.609,
    "s": 66.667,
    "l": 27.059
  },
  "oklch": {
    "l": 0.32138,
    "c": 0.12773,
    "h": 267.3
  },
  "luminance": 0.03076
}

Semantic roles & 50–950 ramp

primary
#172A73
secondary
#A9923D
accent
#C63EEA
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #172A73

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

Preview Lab → · Contrast checker → · Palette generator →

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