#172E7C#172E7C

#172E7C is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.8% C 0.135 H 266.4°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#172E7C
RGBrgb(23, 46, 124)
HSLhsl(226, 69%, 29%)
HSVhsv(226, 81%, 49%)
CMYKcmyk(81.5%, 62.9%, 0%, 51.4%)
CIE-LABlab(22.27, 21.98, -46.74)
CIE-LCHlch(22.27, 51.65, 295.18°)
OKLaboklab(33.82% -0.0086 -0.1351)
OKLCHoklch(33.82% 0.135 266.4)
XYZxyz(4.9672, 3.5908, 19.4962)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172E7C #7C6517
analogous
#17617C #172E7C #33177C
triadic
#172E7C #7C172E #2E7C17
tetradic
#172E7C #7C1761 #7C6517 #177C33
square
#172E7C #7C1761 #7C6517 #177C33
split-complementary
#172E7C #7C3317 #617C17
monochromatic
#050A1A #0D1B48 #172E7C #2141B0 #345AD9

Accessibility & contrast

On white

12.22
#172E7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#172E7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172E7C
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172E7C#FFFFFF#000000##FFFFFF
##172E7C1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7F
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #172e7c;
/* rgb */ color: rgb(23, 46, 124);
/* oklch */ color: oklch(33.8% 0.135 266.4);
Tailwind
colors: {
  custom: {
    50: '#6666a3',
    500: '#172e7c',
    950: '#000000',
  },
}
SCSS
$custom: #172e7c;
$custom-light: #6666a3;
$custom-dark: #000000;
JSON
{
  "hex": "#172e7c",
  "rgb": {
    "r": 23,
    "g": 46,
    "b": 124
  },
  "hsl": {
    "h": 226.337,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33823,
    "c": 0.13541,
    "h": 266.4
  },
  "luminance": 0.03591
}

Semantic roles & 50–950 ramp

primary
#172E7C
secondary
#B1973E
accent
#C43CEC
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #172E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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