#172F7D#172F7D

#172F7D is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.1% C 0.136 H 266.1°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#172F7D
RGBrgb(23, 47, 125)
HSLhsl(226, 69%, 29%)
HSVhsv(226, 82%, 49%)
CMYKcmyk(81.6%, 62.4%, 0%, 51%)
CIE-LABlab(22.64, 21.68, -46.78)
CIE-LCHlch(22.64, 51.56, 294.87°)
OKLaboklab(34.12% -0.0093 -0.1352)
OKLCHoklch(34.12% 0.136 266.1)
XYZxyz(5.0702, 3.6953, 19.8441)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F7D #7D6517
analogous
#17627D #172F7D #32177D
triadic
#172F7D #7D172F #2F7D17
tetradic
#172F7D #7D1762 #7D6517 #177D32
square
#172F7D #7D1762 #7D6517 #177D32
split-complementary
#172F7D #7D3217 #627D17
monochromatic
#050A1A #0D1C49 #172F7D #2142B1 #355BDA

Accessibility & contrast

On white

12.07
#172F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#172F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F7D
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F7D#FFFFFF#000000##FFFFFF
##172F7D1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #172f7d;
/* rgb */ color: rgb(23, 47, 125);
/* oklch */ color: oklch(34.1% 0.136 266.1);
Tailwind
colors: {
  custom: {
    50: '#6767a3',
    500: '#172f7d',
    950: '#000000',
  },
}
SCSS
$custom: #172f7d;
$custom-light: #6767a3;
$custom-dark: #000000;
JSON
{
  "hex": "#172f7d",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 125
  },
  "hsl": {
    "h": 225.882,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.34124,
    "c": 0.13555,
    "h": 266.1
  },
  "luminance": 0.03696
}

Semantic roles & 50–950 ramp

primary
#172F7D
secondary
#B2973E
accent
#C23CEC
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #172F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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