#172F73#172F73

#172F73 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.2% C 0.121 H 265.4°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#172F73
RGBrgb(23, 47, 115)
HSLhsl(224, 67%, 27%)
HSVhsv(224, 80%, 45%)
CMYKcmyk(80%, 59.1%, 0%, 54.9%)
CIE-LABlab(21.77, 17.58, -41.82)
CIE-LCHlch(21.77, 45.37, 292.80°)
OKLaboklab(33.21% -0.0096 -0.1207)
OKLCHoklch(33.21% 0.121 265.4)
XYZxyz(4.4633, 3.4525, 16.6475)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F73 #735B17
analogous
#175D73 #172F73 #2D1773
triadic
#172F73 #73172F #2F7317
tetradic
#172F73 #73175D #735B17 #17732D
square
#172F73 #73175D #735B17 #17732D
split-complementary
#172F73 #732D17 #5D7317
monochromatic
#050A1A #0D1A40 #172F73 #2144A6 #2F5AD5

Accessibility & contrast

On white

12.42
#172F73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#172F73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F73
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F73#FFFFFF#000000##FFFFFF
##172F731.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003975
Deuteranopia (green-blind)
#003072
Tritanopia (blue-blind)
#00404C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #172f73;
/* rgb */ color: rgb(23, 47, 115);
/* oklch */ color: oklch(33.2% 0.121 265.4);
Tailwind
colors: {
  custom: {
    50: '#64679c',
    500: '#172f73',
    950: '#000000',
  },
}
SCSS
$custom: #172f73;
$custom-light: #64679c;
$custom-dark: #000000;
JSON
{
  "hex": "#172f73",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 115
  },
  "hsl": {
    "h": 224.348,
    "s": 66.667,
    "l": 27.059
  },
  "oklch": {
    "l": 0.33206,
    "c": 0.12106,
    "h": 265.4
  },
  "luminance": 0.03453
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #172F73

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

Preview Lab → · Contrast checker → · Palette generator →

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