#172C7B#172C7B

#172C7B is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.3% C 0.137 H 266.9°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#172C7B
RGBrgb(23, 44, 123)
HSLhsl(227, 68%, 29%)
HSVhsv(227, 81%, 48%)
CMYKcmyk(81.3%, 64.2%, 0%, 51.8%)
CIE-LABlab(21.63, 22.99, -47.16)
CIE-LCHlch(21.63, 52.46, 295.98°)
OKLaboklab(33.32% -0.0073 -0.1364)
OKLCHoklch(33.32% 0.137 266.9)
XYZxyz(4.8279, 3.4130, 19.1394)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C7B #7B6617
analogous
#175E7B #172C7B #34177B
triadic
#172C7B #7B172C #2C7B17
tetradic
#172C7B #7B175E #7B6617 #177B34
square
#172C7B #7B175E #7B6617 #177B34
split-complementary
#172C7B #7B3417 #5E7B17
monochromatic
#05091A #0D1A47 #172C7B #213EAF #3356D9

Accessibility & contrast

On white

12.48
#172C7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#172C7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172C7B
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172C7B#FFFFFF#000000##FFFFFF
##172C7B1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397E
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #172c7b;
/* rgb */ color: rgb(23, 44, 123);
/* oklch */ color: oklch(33.3% 0.137 266.9);
Tailwind
colors: {
  custom: {
    50: '#6664a2',
    500: '#172c7b',
    950: '#000000',
  },
}
SCSS
$custom: #172c7b;
$custom-light: #6664a2;
$custom-dark: #000000;
JSON
{
  "hex": "#172c7b",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 123
  },
  "hsl": {
    "h": 227.4,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33318,
    "c": 0.13659,
    "h": 266.9
  },
  "luminance": 0.03414
}

Semantic roles & 50–950 ramp

primary
#172C7B
secondary
#B0983E
accent
#C73CEB
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #172C7B

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

Preview Lab → · Contrast checker → · Palette generator →

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