#172D75#172D75

#172D75 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.0% C 0.127 H 266.4°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#172D75
RGBrgb(23, 45, 117)
HSLhsl(226, 67%, 27%)
HSVhsv(226, 80%, 46%)
CMYKcmyk(80.3%, 61.5%, 0%, 54.1%)
CIE-LABlab(21.37, 19.83, -43.76)
CIE-LCHlch(21.37, 48.05, 294.38°)
OKLaboklab(32.96% -0.008 -0.1264)
OKLCHoklch(32.96% 0.127 266.4)
XYZxyz(4.5015, 3.3428, 17.2341)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172D75 #755F17
analogous
#175C75 #172D75 #301775
triadic
#172D75 #75172D #2D7517
tetradic
#172D75 #75175C #755F17 #177530
square
#172D75 #75175C #755F17 #177530
split-complementary
#172D75 #753017 #5C7517
monochromatic
#050A1A #0D1942 #172D75 #2141A8 #3057D6

Accessibility & contrast

On white

12.59
#172D75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#172D75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172D75
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172D75#FFFFFF#000000##FFFFFF
##172D751.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003877
Deuteranopia (green-blind)
#002F74
Tritanopia (blue-blind)
#003F4C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #172d75;
/* rgb */ color: rgb(23, 45, 117);
/* oklch */ color: oklch(33.0% 0.127 266.4);
Tailwind
colors: {
  custom: {
    50: '#65659d',
    500: '#172d75',
    950: '#000000',
  },
}
SCSS
$custom: #172d75;
$custom-light: #65659d;
$custom-dark: #000000;
JSON
{
  "hex": "#172d75",
  "rgb": {
    "r": 23,
    "g": 45,
    "b": 117
  },
  "hsl": {
    "h": 225.957,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32957,
    "c": 0.12666,
    "h": 266.4
  },
  "luminance": 0.03343
}

Semantic roles & 50–950 ramp

primary
#172D75
secondary
#AA913D
accent
#C23EEA
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #172D75

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

Preview Lab → · Contrast checker → · Palette generator →

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