#172F7E#172F7E

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

Color values

HEX#172F7E
RGBrgb(23, 47, 126)
HSLhsl(226, 69%, 29%)
HSVhsv(226, 82%, 49%)
CMYKcmyk(81.7%, 62.7%, 0%, 50.6%)
CIE-LABlab(22.73, 22.09, -47.26)
CIE-LCHlch(22.73, 52.17, 295.05°)
OKLaboklab(34.22% -0.0092 -0.1366)
OKLCHoklch(34.22% 0.137 266.1)
XYZxyz(5.1344, 3.7210, 20.1822)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F7E #7E6617
analogous
#17637E #172F7E #32177E
triadic
#172F7E #7E172F #2F7E17
tetradic
#172F7E #7E1763 #7E6617 #177E32
square
#172F7E #7E1763 #7E6617 #177E32
split-complementary
#172F7E #7E3217 #637E17
monochromatic
#050A1A #0E1C4A #172F7E #2042B2 #355CDA

Accessibility & contrast

On white

12.04
#172F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172F7E
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F7E#FFFFFF#000000##FFFFFF
##172F7E1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #172f7e;
/* rgb */ color: rgb(23, 47, 126);
/* oklch */ color: oklch(34.2% 0.137 266.1);
Tailwind
colors: {
  custom: {
    50: '#6767a4',
    500: '#172f7e',
    950: '#000000',
  },
}
SCSS
$custom: #172f7e;
$custom-light: #6767a4;
$custom-dark: #000000;
JSON
{
  "hex": "#172f7e",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 126
  },
  "hsl": {
    "h": 226.019,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.34218,
    "c": 0.13696,
    "h": 266.1
  },
  "luminance": 0.03722
}

Semantic roles & 50–950 ramp

primary
#172F7E
secondary
#B3983E
accent
#C33CEC
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #172F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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