#172C4E#172C4E

#172C4E is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.5% C 0.068 H 259.6°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#172C4E
RGBrgb(23, 44, 78)
HSLhsl(217, 54%, 20%)
HSVhsv(217, 71%, 31%)
CMYKcmyk(70.5%, 43.6%, 0%, 69.4%)
CIE-LABlab(18.07, 4.36, -23.45)
CIE-LCHlch(18.07, 23.85, 280.53°)
OKLaboklab(29.5% -0.0122 -0.0667)
OKLCHoklch(29.5% 0.068 259.6)
XYZxyz(2.6287, 2.5333, 7.5567)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C4E #4E3917
analogous
#17484E #172C4E #1E174E
triadic
#172C4E #4E172C #2C4E17
tetradic
#172C4E #4E1748 #4E3917 #174E1E
square
#172C4E #4E1748 #4E3917 #174E1E
split-complementary
#172C4E #4E1E17 #484E17
monochromatic
#070D18 #09111F #172C4E #25477D #3361AD

Accessibility & contrast

On white

13.94
#172C4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#172C4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172C4E
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172C4E#FFFFFF#000000##FFFFFF
##172C4E1.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2F4F
Deuteranopia (green-blind)
#152A4D
Tritanopia (blue-blind)
#003439
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #172c4e;
/* rgb */ color: rgb(23, 44, 78);
/* oklch */ color: oklch(29.5% 0.068 259.6);
Tailwind
colors: {
  custom: {
    50: '#5b6480',
    500: '#172c4e',
    950: '#000000',
  },
}
SCSS
$custom: #172c4e;
$custom-light: #5b6480;
$custom-dark: #000000;
JSON
{
  "hex": "#172c4e",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 78
  },
  "hsl": {
    "h": 217.091,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.29497,
    "c": 0.06784,
    "h": 259.6
  },
  "luminance": 0.02534
}

Semantic roles & 50–950 ramp

primary
#172C4E
secondary
#85693C
accent
#A54ADE
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#04050A
muted
#79797C

Preview Lab

Preview with #172C4E

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

Preview Lab → · Contrast checker → · Palette generator →

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