#172C7F#172C7F

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

Color values

HEX#172C7F
RGBrgb(23, 44, 127)
HSLhsl(228, 69%, 29%)
HSVhsv(228, 82%, 50%)
CMYKcmyk(81.9%, 65.4%, 0%, 50.2%)
CIE-LABlab(22.00, 24.59, -49.09)
CIE-LCHlch(22.00, 54.90, 296.61°)
OKLaboklab(33.71% -0.0073 -0.142)
OKLCHoklch(33.71% 0.142 267)
XYZxyz(5.0835, 3.5152, 20.4851)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C7F #7F6A17
analogous
#17607F #172C7F #36177F
triadic
#172C7F #7F172C #2C7F17
tetradic
#172C7F #7F1760 #7F6A17 #177F36
square
#172C7F #7F1760 #7F6A17 #177F36
split-complementary
#172C7F #7F3617 #607F17
monochromatic
#05091A #0E1A4B #172C7F #203EB3 #3657DB

Accessibility & contrast

On white

12.33
#172C7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172C7F
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172C7F#FFFFFF#000000##FFFFFF
##172C7F1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #172c7f;
/* rgb */ color: rgb(23, 44, 127);
/* oklch */ color: oklch(33.7% 0.142 267.0);
Tailwind
colors: {
  custom: {
    50: '#6764a5',
    500: '#172c7f',
    950: '#000000',
  },
}
SCSS
$custom: #172c7f;
$custom-light: #6764a5;
$custom-dark: #000000;
JSON
{
  "hex": "#172c7f",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 127
  },
  "hsl": {
    "h": 227.885,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33708,
    "c": 0.14222,
    "h": 267
  },
  "luminance": 0.03516
}

Semantic roles & 50–950 ramp

primary
#172C7F
secondary
#B49C3E
accent
#C93CEC
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #172C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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