#172F7B#172F7B

#172F7B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.9% C 0.133 H 266.0°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#172F7B
RGBrgb(23, 47, 123)
HSLhsl(226, 68%, 29%)
HSVhsv(226, 81%, 48%)
CMYKcmyk(81.3%, 61.8%, 0%, 51.8%)
CIE-LABlab(22.46, 20.87, -45.80)
CIE-LCHlch(22.46, 50.33, 294.49°)
OKLaboklab(33.94% -0.0093 -0.1324)
OKLCHoklch(33.94% 0.133 266)
XYZxyz(4.9438, 3.6447, 19.1780)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F7B #7B6317
analogous
#17617B #172F7B #31177B
triadic
#172F7B #7B172F #2F7B17
tetradic
#172F7B #7B1761 #7B6317 #177B31
square
#172F7B #7B1761 #7B6317 #177B31
split-complementary
#172F7B #7B3117 #617B17
monochromatic
#050A1A #0D1B47 #172F7B #2143AF #335BD9

Accessibility & contrast

On white

12.15
#172F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172F7B
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F7B#FFFFFF#000000##FFFFFF
##172F7B1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7E
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #172f7b;
/* rgb */ color: rgb(23, 47, 123);
/* oklch */ color: oklch(33.9% 0.133 266.0);
Tailwind
colors: {
  custom: {
    50: '#6667a2',
    500: '#172f7b',
    950: '#000000',
  },
}
SCSS
$custom: #172f7b;
$custom-light: #6667a2;
$custom-dark: #000000;
JSON
{
  "hex": "#172f7b",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 123
  },
  "hsl": {
    "h": 225.6,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33937,
    "c": 0.13269,
    "h": 266
  },
  "luminance": 0.03645
}

Semantic roles & 50–950 ramp

primary
#172F7B
secondary
#B0953E
accent
#C13CEB
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #172F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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