#172772#172772

#172772 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.4% C 0.130 H 268.3°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#172772
RGBrgb(23, 39, 114)
HSLhsl(229, 66%, 27%)
HSVhsv(229, 80%, 45%)
CMYKcmyk(79.8%, 65.8%, 0%, 55.3%)
CIE-LABlab(19.42, 22.89, -45.01)
CIE-LCHlch(19.42, 50.49, 296.95°)
OKLaboklab(31.43% -0.0038 -0.1301)
OKLCHoklch(31.43% 0.13 268.3)
XYZxyz(4.1151, 2.8476, 16.2491)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172772 #726217
analogous
#175572 #172772 #351772
triadic
#172772 #721727 #277217
tetradic
#172772 #721755 #726217 #177235
square
#172772 #721755 #726217 #177235
split-complementary
#172772 #723517 #557217
monochromatic
#050919 #0D163F #172772 #2138A5 #2E4CD5

Accessibility & contrast

On white

13.38
#172772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#172772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172772
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172772#FFFFFF#000000##FFFFFF
##1727721.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003374
Deuteranopia (green-blind)
#002B71
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #172772;
/* rgb */ color: rgb(23, 39, 114);
/* oklch */ color: oklch(31.4% 0.130 268.3);
Tailwind
colors: {
  custom: {
    50: '#64619b',
    500: '#172772',
    950: '#000000',
  },
}
SCSS
$custom: #172772;
$custom-light: #64619b;
$custom-dark: #000000;
JSON
{
  "hex": "#172772",
  "rgb": {
    "r": 23,
    "g": 39,
    "b": 114
  },
  "hsl": {
    "h": 229.451,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31428,
    "c": 0.13021,
    "h": 268.3
  },
  "luminance": 0.02848
}

Semantic roles & 50–950 ramp

primary
#172772
secondary
#A8953D
accent
#CB3EE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #172772

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

Preview Lab → · Contrast checker → · Palette generator →

#172772 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva