#172E76#172E76

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

Color values

HEX#172E76
RGBrgb(23, 46, 118)
HSLhsl(225, 67%, 28%)
HSVhsv(225, 81%, 46%)
CMYKcmyk(80.5%, 61%, 0%, 53.7%)
CIE-LABlab(21.74, 19.53, -43.79)
CIE-LCHlch(21.74, 47.95, 294.04°)
OKLaboklab(33.26% -0.0088 -0.1265)
OKLCHoklch(33.26% 0.127 266)
XYZxyz(4.5992, 3.4436, 17.5583)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172E76 #765F17
analogous
#175D76 #172E76 #301776
triadic
#172E76 #76172E #2E7617
tetradic
#172E76 #76175D #765F17 #177630
square
#172E76 #76175D #765F17 #177630
split-complementary
#172E76 #763017 #5D7617
monochromatic
#050A1A #0D1A43 #172E76 #2142A9 #3159D7

Accessibility & contrast

On white

12.43
#172E76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172E76
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172E76#FFFFFF#000000##FFFFFF
##172E761.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003978
Deuteranopia (green-blind)
#003075
Tritanopia (blue-blind)
#00404D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #172e76;
/* rgb */ color: rgb(23, 46, 118);
/* oklch */ color: oklch(33.3% 0.127 266.0);
Tailwind
colors: {
  custom: {
    50: '#65669e',
    500: '#172e76',
    950: '#000000',
  },
}
SCSS
$custom: #172e76;
$custom-light: #65669e;
$custom-dark: #000000;
JSON
{
  "hex": "#172e76",
  "rgb": {
    "r": 23,
    "g": 46,
    "b": 118
  },
  "hsl": {
    "h": 225.474,
    "s": 67.376,
    "l": 27.647
  },
  "oklch": {
    "l": 0.33262,
    "c": 0.12678,
    "h": 266
  },
  "luminance": 0.03444
}

Semantic roles & 50–950 ramp

primary
#172E76
secondary
#AB913E
accent
#C03EEA
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #172E76

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

Preview Lab → · Contrast checker → · Palette generator →

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