#172174#172174

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

Color values

HEX#172174
RGBrgb(23, 33, 116)
HSLhsl(234, 67%, 27%)
HSVhsv(234, 80%, 45%)
CMYKcmyk(80.2%, 71.6%, 0%, 54.5%)
CIE-LABlab(18.06, 27.83, -48.54)
CIE-LCHlch(18.06, 55.95, 299.82°)
OKLaboklab(30.49% -0.0003 -0.1405)
OKLCHoklch(30.49% 0.141 269.9)
XYZxyz(4.0485, 2.5304, 16.7947)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172174 #746A17
analogous
#175074 #172174 #3B1774
triadic
#172174 #741721 #217417
tetradic
#172174 #741750 #746A17 #17743B
square
#172174 #741750 #746A17 #17743B
split-complementary
#172174 #743B17 #507417
monochromatic
#05071A #0D1241 #172174 #2130A7 #3041D6

Accessibility & contrast

On white

13.94
#172174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172174
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172174#FFFFFF#000000##FFFFFF
##1721741.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #172174;
/* rgb */ color: rgb(23, 33, 116);
/* oklch */ color: oklch(30.5% 0.141 269.9);
Tailwind
colors: {
  custom: {
    50: '#655c9d',
    500: '#172174',
    950: '#000000',
  },
}
SCSS
$custom: #172174;
$custom-light: #655c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#172174",
  "rgb": {
    "r": 23,
    "g": 33,
    "b": 116
  },
  "hsl": {
    "h": 233.548,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30488,
    "c": 0.14052,
    "h": 269.9
  },
  "luminance": 0.02531
}

Semantic roles & 50–950 ramp

primary
#172174
secondary
#A99E3D
accent
#D73EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #172174

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

Preview Lab → · Contrast checker → · Palette generator →

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