#172F74#172F74

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

Color values

HEX#172F74
RGBrgb(23, 47, 116)
HSLhsl(225, 67%, 27%)
HSVhsv(225, 80%, 45%)
CMYKcmyk(80.2%, 59.5%, 0%, 54.5%)
CIE-LABlab(21.86, 17.99, -42.32)
CIE-LCHlch(21.86, 45.99, 293.03°)
OKLaboklab(33.3% -0.0096 -0.1221)
OKLCHoklch(33.3% 0.123 265.5)
XYZxyz(4.5211, 3.4756, 16.9522)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F74 #745C17
analogous
#175E74 #172F74 #2E1774
triadic
#172F74 #74172F #2F7417
tetradic
#172F74 #74175E #745C17 #17742E
square
#172F74 #74175E #745C17 #17742E
split-complementary
#172F74 #742E17 #5E7417
monochromatic
#050A1A #0D1A41 #172F74 #2144A7 #305AD6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##172F74#FFFFFF#000000##FFFFFF
##172F741.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)
#003976
Deuteranopia (green-blind)
#003073
Tritanopia (blue-blind)
#00404C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #172f74;
/* rgb */ color: rgb(23, 47, 116);
/* oklch */ color: oklch(33.3% 0.123 265.5);
Tailwind
colors: {
  custom: {
    50: '#64679d',
    500: '#172f74',
    950: '#000000',
  },
}
SCSS
$custom: #172f74;
$custom-light: #64679d;
$custom-dark: #000000;
JSON
{
  "hex": "#172f74",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 116
  },
  "hsl": {
    "h": 224.516,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.33296,
    "c": 0.12253,
    "h": 265.5
  },
  "luminance": 0.03476
}

Semantic roles & 50–950 ramp

primary
#172F74
secondary
#A98E3D
accent
#BD3EEA
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #172F74

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

Preview Lab → · Contrast checker → · Palette generator →

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