#172C7D#172C7D

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

Color values

HEX#172C7D
RGBrgb(23, 44, 125)
HSLhsl(228, 69%, 29%)
HSVhsv(228, 82%, 49%)
CMYKcmyk(81.6%, 64.8%, 0%, 51%)
CIE-LABlab(21.81, 23.79, -48.13)
CIE-LCHlch(21.81, 53.69, 296.31°)
OKLaboklab(33.51% -0.0073 -0.1392)
OKLCHoklch(33.51% 0.139 267)
XYZxyz(4.9544, 3.4636, 19.8055)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C7D #7D6817
analogous
#175F7D #172C7D #35177D
triadic
#172C7D #7D172C #2C7D17
tetradic
#172C7D #7D175F #7D6817 #177D35
square
#172C7D #7D175F #7D6817 #177D35
split-complementary
#172C7D #7D3517 #5F7D17
monochromatic
#05091A #0D1A49 #172C7D #213EB1 #3557DA

Accessibility & contrast

On white

12.41
#172C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#172C7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172C7D
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172C7D#FFFFFF#000000##FFFFFF
##172C7D1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #172c7d;
/* rgb */ color: rgb(23, 44, 125);
/* oklch */ color: oklch(33.5% 0.139 267.0);
Tailwind
colors: {
  custom: {
    50: '#6764a3',
    500: '#172c7d',
    950: '#000000',
  },
}
SCSS
$custom: #172c7d;
$custom-light: #6764a3;
$custom-dark: #000000;
JSON
{
  "hex": "#172c7d",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 125
  },
  "hsl": {
    "h": 227.647,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33512,
    "c": 0.13941,
    "h": 267
  },
  "luminance": 0.03464
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #172C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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