#172178#172178

#172178 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.9% C 0.146 H 269.7°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#172178
RGBrgb(23, 33, 120)
HSLhsl(234, 68%, 28%)
HSVhsv(234, 81%, 47%)
CMYKcmyk(80.8%, 72.5%, 0%, 52.9%)
CIE-LABlab(18.48, 29.36, -50.42)
CIE-LCHlch(18.48, 58.34, 300.22°)
OKLaboklab(30.92% -0.0007 -0.146)
OKLCHoklch(30.92% 0.146 269.7)
XYZxyz(4.2862, 2.6255, 18.0465)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172178 #786E17
analogous
#175278 #172178 #3D1778
triadic
#172178 #781721 #217817
tetradic
#172178 #781752 #786E17 #17783D
square
#172178 #781752 #786E17 #17783D
split-complementary
#172178 #783D17 #527817
monochromatic
#05071A #0D1345 #172178 #212FAB #3243D8

Accessibility & contrast

On white

13.77
#172178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#172178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172178
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172178#FFFFFF#000000##FFFFFF
##1721781.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327B
Deuteranopia (green-blind)
#002876
Tritanopia (blue-blind)
#00394A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #172178;
/* rgb */ color: rgb(23, 33, 120);
/* oklch */ color: oklch(30.9% 0.146 269.7);
Tailwind
colors: {
  custom: {
    50: '#675ca0',
    500: '#172178',
    950: '#000000',
  },
}
SCSS
$custom: #172178;
$custom-light: #675ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#172178",
  "rgb": {
    "r": 23,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 233.814,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3092,
    "c": 0.14599,
    "h": 269.7
  },
  "luminance": 0.02626
}

Semantic roles & 50–950 ramp

primary
#172178
secondary
#ADA23E
accent
#D93DEB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040F
muted
#7A797E

Preview Lab

Preview with #172178

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

Preview Lab → · Contrast checker → · Palette generator →

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