#172272#172272

#172272 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.5% C 0.137 H 269.7°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#172272
RGBrgb(23, 34, 114)
HSLhsl(233, 66%, 27%)
HSVhsv(233, 80%, 45%)
CMYKcmyk(79.8%, 70.2%, 0%, 55.3%)
CIE-LABlab(18.10, 26.37, -47.18)
CIE-LCHlch(18.10, 54.05, 299.20°)
OKLaboklab(30.46% -0.0006 -0.1365)
OKLCHoklch(30.46% 0.137 269.7)
XYZxyz(3.9616, 2.5407, 16.1979)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172272 #726717
analogous
#175072 #172272 #3A1772
triadic
#172272 #721722 #227217
tetradic
#172272 #721750 #726717 #17723A
square
#172272 #721750 #726717 #17723A
split-complementary
#172272 #723A17 #507217
monochromatic
#050819 #0D133F #172272 #2131A5 #2E43D5

Accessibility & contrast

On white

13.92
#172272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#172272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172272
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172272#FFFFFF#000000##FFFFFF
##1722721.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003174
Deuteranopia (green-blind)
#002871
Tritanopia (blue-blind)
#003847
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #172272;
/* rgb */ color: rgb(23, 34, 114);
/* oklch */ color: oklch(30.5% 0.137 269.7);
Tailwind
colors: {
  custom: {
    50: '#655d9b',
    500: '#172272',
    950: '#000000',
  },
}
SCSS
$custom: #172272;
$custom-light: #655d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#172272",
  "rgb": {
    "r": 23,
    "g": 34,
    "b": 114
  },
  "hsl": {
    "h": 232.747,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30459,
    "c": 0.13653,
    "h": 269.7
  },
  "luminance": 0.02541
}

Semantic roles & 50–950 ramp

primary
#172272
secondary
#A89B3D
accent
#D53EE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #172272

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

Preview Lab → · Contrast checker → · Palette generator →

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