#172C7C#172C7C

#172C7C is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.4% C 0.138 H 267.0°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#172C7C
RGBrgb(23, 44, 124)
HSLhsl(228, 69%, 29%)
HSVhsv(228, 81%, 49%)
CMYKcmyk(81.5%, 64.5%, 0%, 51.4%)
CIE-LABlab(21.72, 23.39, -47.64)
CIE-LCHlch(21.72, 53.08, 296.15°)
OKLaboklab(33.42% -0.0073 -0.1378)
OKLCHoklch(33.42% 0.138 267)
XYZxyz(4.8909, 3.4382, 19.4707)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C7C #7C6717
analogous
#175F7C #172C7C #35177C
triadic
#172C7C #7C172C #2C7C17
tetradic
#172C7C #7C175F #7C6717 #177C35
square
#172C7C #7C175F #7C6717 #177C35
split-complementary
#172C7C #7C3517 #5F7C17
monochromatic
#05091A #0D1A48 #172C7C #213EB0 #3456D9

Accessibility & contrast

On white

12.44
#172C7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172C7C
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172C7C#FFFFFF#000000##FFFFFF
##172C7C1.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #172c7c;
/* rgb */ color: rgb(23, 44, 124);
/* oklch */ color: oklch(33.4% 0.138 267.0);
Tailwind
colors: {
  custom: {
    50: '#6764a3',
    500: '#172c7c',
    950: '#000000',
  },
}
SCSS
$custom: #172c7c;
$custom-light: #6764a3;
$custom-dark: #000000;
JSON
{
  "hex": "#172c7c",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 124
  },
  "hsl": {
    "h": 227.525,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33415,
    "c": 0.138,
    "h": 267
  },
  "luminance": 0.03439
}

Semantic roles & 50–950 ramp

primary
#172C7C
secondary
#B1993E
accent
#C73CEC
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #172C7C

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

Preview Lab → · Contrast checker → · Palette generator →

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