#172F75#172F75

#172F75 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.4% C 0.124 H 265.6°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#172F75
RGBrgb(23, 47, 117)
HSLhsl(225, 67%, 27%)
HSVhsv(225, 80%, 46%)
CMYKcmyk(80.3%, 59.8%, 0%, 54.1%)
CIE-LABlab(21.94, 18.40, -42.83)
CIE-LCHlch(21.94, 46.61, 293.26°)
OKLaboklab(33.39% -0.0095 -0.1236)
OKLCHoklch(33.39% 0.124 265.6)
XYZxyz(4.5796, 3.4990, 17.2602)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F75 #755D17
analogous
#175E75 #172F75 #2E1775
triadic
#172F75 #75172F #2F7517
tetradic
#172F75 #75175E #755D17 #17752E
square
#172F75 #75175E #755D17 #17752E
split-complementary
#172F75 #752E17 #5E7517
monochromatic
#050A1A #0D1A42 #172F75 #2144A8 #305BD6

Accessibility & contrast

On white

12.35
#172F75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172F75
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F75#FFFFFF#000000##FFFFFF
##172F751.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003977
Deuteranopia (green-blind)
#003074
Tritanopia (blue-blind)
#00404D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #172f75;
/* rgb */ color: rgb(23, 47, 117);
/* oklch */ color: oklch(33.4% 0.124 265.6);
Tailwind
colors: {
  custom: {
    50: '#64679d',
    500: '#172f75',
    950: '#000000',
  },
}
SCSS
$custom: #172f75;
$custom-light: #64679d;
$custom-dark: #000000;
JSON
{
  "hex": "#172f75",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 117
  },
  "hsl": {
    "h": 224.681,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.33386,
    "c": 0.124,
    "h": 265.6
  },
  "luminance": 0.035
}

Semantic roles & 50–950 ramp

primary
#172F75
secondary
#AA8F3D
accent
#BE3EEA
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #172F75

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

Preview Lab → · Contrast checker → · Palette generator →

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