#172F7C#172F7C

#172F7C is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.0% C 0.134 H 266.0°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#172F7C
RGBrgb(23, 47, 124)
HSLhsl(226, 69%, 29%)
HSVhsv(226, 81%, 49%)
CMYKcmyk(81.5%, 62.1%, 0%, 51.4%)
CIE-LABlab(22.55, 21.27, -46.29)
CIE-LCHlch(22.55, 50.94, 294.68°)
OKLaboklab(34.03% -0.0093 -0.1338)
OKLCHoklch(34.03% 0.134 266)
XYZxyz(5.0067, 3.6698, 19.5094)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F7C #7C6417
analogous
#17627C #172F7C #32177C
triadic
#172F7C #7C172F #2F7C17
tetradic
#172F7C #7C1762 #7C6417 #177C32
square
#172F7C #7C1762 #7C6417 #177C32
split-complementary
#172F7C #7C3217 #627C17
monochromatic
#050A1A #0D1B48 #172F7C #2143B0 #345BD9

Accessibility & contrast

On white

12.11
#172F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#172F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F7C
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F7C#FFFFFF#000000##FFFFFF
##172F7C1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#004350
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #172f7c;
/* rgb */ color: rgb(23, 47, 124);
/* oklch */ color: oklch(34.0% 0.134 266.0);
Tailwind
colors: {
  custom: {
    50: '#6667a3',
    500: '#172f7c',
    950: '#000000',
  },
}
SCSS
$custom: #172f7c;
$custom-light: #6667a3;
$custom-dark: #000000;
JSON
{
  "hex": "#172f7c",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 124
  },
  "hsl": {
    "h": 225.743,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3403,
    "c": 0.13412,
    "h": 266
  },
  "luminance": 0.0367
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #172F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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