#172C7E#172C7E

#172C7E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.6% C 0.141 H 267.0°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#172C7E
RGBrgb(23, 44, 126)
HSLhsl(228, 69%, 29%)
HSVhsv(228, 82%, 49%)
CMYKcmyk(81.7%, 65.1%, 0%, 50.6%)
CIE-LABlab(21.91, 24.19, -48.61)
CIE-LCHlch(21.91, 54.29, 296.46°)
OKLaboklab(33.61% -0.0073 -0.1406)
OKLCHoklch(33.61% 0.141 267)
XYZxyz(5.0186, 3.4893, 20.1436)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C7E #7E6917
analogous
#17607E #172C7E #36177E
triadic
#172C7E #7E172C #2C7E17
tetradic
#172C7E #7E1760 #7E6917 #177E36
square
#172C7E #7E1760 #7E6917 #177E36
split-complementary
#172C7E #7E3617 #607E17
monochromatic
#05091A #0E1A4A #172C7E #203EB2 #3557DA

Accessibility & contrast

On white

12.37
#172C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#172C7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172C7E
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172C7E#FFFFFF#000000##FFFFFF
##172C7E1.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #172c7e;
/* rgb */ color: rgb(23, 44, 126);
/* oklch */ color: oklch(33.6% 0.141 267.0);
Tailwind
colors: {
  custom: {
    50: '#6764a4',
    500: '#172c7e',
    950: '#000000',
  },
}
SCSS
$custom: #172c7e;
$custom-light: #6764a4;
$custom-dark: #000000;
JSON
{
  "hex": "#172c7e",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 126
  },
  "hsl": {
    "h": 227.767,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33609,
    "c": 0.14082,
    "h": 267
  },
  "luminance": 0.0349
}

Semantic roles & 50–950 ramp

primary
#172C7E
secondary
#B39B3E
accent
#C83CEC
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #172C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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