#172E7F#172E7F

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

Color values

HEX#172E7F
RGBrgb(23, 46, 127)
HSLhsl(227, 69%, 29%)
HSVhsv(227, 82%, 50%)
CMYKcmyk(81.9%, 63.8%, 0%, 50.2%)
CIE-LABlab(22.54, 23.19, -48.20)
CIE-LCHlch(22.54, 53.49, 295.70°)
OKLaboklab(34.11% -0.0086 -0.1394)
OKLCHoklch(34.11% 0.14 266.5)
XYZxyz(5.1598, 3.6679, 20.5106)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172E7F #7F6817
analogous
#17627F #172E7F #34177F
triadic
#172E7F #7F172E #2E7F17
tetradic
#172E7F #7F1762 #7F6817 #177F34
square
#172E7F #7F1762 #7F6817 #177F34
split-complementary
#172E7F #7F3417 #627F17
monochromatic
#05091A #0E1B4B #172E7F #2041B3 #365ADB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##172E7F#FFFFFF#000000##FFFFFF
##172E7F1.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)
#003B82
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #172e7f;
/* rgb */ color: rgb(23, 46, 127);
/* oklch */ color: oklch(34.1% 0.140 266.5);
Tailwind
colors: {
  custom: {
    50: '#6766a5',
    500: '#172e7f',
    950: '#000000',
  },
}
SCSS
$custom: #172e7f;
$custom-light: #6766a5;
$custom-dark: #000000;
JSON
{
  "hex": "#172e7f",
  "rgb": {
    "r": 23,
    "g": 46,
    "b": 127
  },
  "hsl": {
    "h": 226.731,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.34109,
    "c": 0.13968,
    "h": 266.5
  },
  "luminance": 0.03668
}

Semantic roles & 50–950 ramp

primary
#172E7F
secondary
#B49A3E
accent
#C53CEC
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #172E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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