#172C70#172C70

#172C70 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.3% C 0.121 H 266.5°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#172C70
RGBrgb(23, 44, 112)
HSLhsl(226, 66%, 26%)
HSVhsv(226, 79%, 44%)
CMYKcmyk(79.5%, 60.7%, 0%, 56.1%)
CIE-LABlab(20.65, 18.50, -41.73)
CIE-LCHlch(20.65, 45.64, 293.91°)
OKLaboklab(32.28% -0.0075 -0.1204)
OKLCHoklch(32.28% 0.121 266.5)
XYZxyz(4.1776, 3.1529, 15.7145)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C70 #705B17
analogous
#175970 #172C70 #2F1770
triadic
#172C70 #70172C #2C7017
tetradic
#172C70 #701759 #705B17 #17702F
square
#172C70 #701759 #705B17 #17702F
split-complementary
#172C70 #702F17 #597017
monochromatic
#050A19 #0D183D #172C70 #2140A3 #2D55D4

Accessibility & contrast

On white

12.88
#172C70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#172C70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172C70
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172C70#FFFFFF#000000##FFFFFF
##172C701.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003672
Deuteranopia (green-blind)
#002E6F
Tritanopia (blue-blind)
#003D49
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #172c70;
/* rgb */ color: rgb(23, 44, 112);
/* oklch */ color: oklch(32.3% 0.121 266.5);
Tailwind
colors: {
  custom: {
    50: '#63649a',
    500: '#172c70',
    950: '#000000',
  },
}
SCSS
$custom: #172c70;
$custom-light: #63649a;
$custom-dark: #000000;
JSON
{
  "hex": "#172c70",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 112
  },
  "hsl": {
    "h": 225.843,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.32282,
    "c": 0.12067,
    "h": 266.5
  },
  "luminance": 0.03153
}

Semantic roles & 50–950 ramp

primary
#172C70
secondary
#A68D3D
accent
#C13FE9
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #172C70

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

Preview Lab → · Contrast checker → · Palette generator →

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