#172A74#172A74

#172A74 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.2% C 0.129 H 267.4°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#172A74
RGBrgb(23, 42, 116)
HSLhsl(228, 67%, 27%)
HSVhsv(228, 80%, 45%)
CMYKcmyk(80.2%, 63.8%, 0%, 54.5%)
CIE-LABlab(20.43, 21.57, -44.64)
CIE-LCHlch(20.43, 49.58, 295.78°)
OKLaboklab(32.23% -0.0059 -0.129)
OKLCHoklch(32.23% 0.129 267.4)
XYZxyz(4.3326, 3.0986, 16.8893)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A74 #746117
analogous
#175974 #172A74 #331774
triadic
#172A74 #74172A #2A7417
tetradic
#172A74 #741759 #746117 #177433
square
#172A74 #741759 #746117 #177433
split-complementary
#172A74 #743317 #597417
monochromatic
#05091A #0D1841 #172A74 #213CA7 #3052D6

Accessibility & contrast

On white

12.96
#172A74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172A74
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A74#FFFFFF#000000##FFFFFF
##172A741.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #172a74;
/* rgb */ color: rgb(23, 42, 116);
/* oklch */ color: oklch(32.2% 0.129 267.4);
Tailwind
colors: {
  custom: {
    50: '#65639d',
    500: '#172a74',
    950: '#000000',
  },
}
SCSS
$custom: #172a74;
$custom-light: #65639d;
$custom-dark: #000000;
JSON
{
  "hex": "#172a74",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 116
  },
  "hsl": {
    "h": 227.742,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.32234,
    "c": 0.12918,
    "h": 267.4
  },
  "luminance": 0.03099
}

Semantic roles & 50–950 ramp

primary
#172A74
secondary
#A9933D
accent
#C73EEA
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #172A74

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

Preview Lab → · Contrast checker → · Palette generator →

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