#172177#172177

#172177 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.8% C 0.145 H 269.8°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#172177
RGBrgb(23, 33, 119)
HSLhsl(234, 68%, 28%)
HSVhsv(234, 81%, 47%)
CMYKcmyk(80.7%, 72.3%, 0%, 53.3%)
CIE-LABlab(18.37, 28.98, -49.95)
CIE-LCHlch(18.37, 57.75, 300.12°)
OKLaboklab(30.81% -0.0006 -0.1446)
OKLCHoklch(30.81% 0.145 269.8)
XYZxyz(4.2258, 2.6013, 17.7286)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172177 #776D17
analogous
#175177 #172177 #3D1777
triadic
#172177 #771721 #217717
tetradic
#172177 #771751 #776D17 #17773D
square
#172177 #771751 #776D17 #17773D
split-complementary
#172177 #773D17 #517717
monochromatic
#05071A #0D1344 #172177 #212FAA #3142D7

Accessibility & contrast

On white

13.81
#172177 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#172177 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172177
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172177#FFFFFF#000000##FFFFFF
##1721771.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317A
Deuteranopia (green-blind)
#002875
Tritanopia (blue-blind)
#003949
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #172177;
/* rgb */ color: rgb(23, 33, 119);
/* oklch */ color: oklch(30.8% 0.145 269.8);
Tailwind
colors: {
  custom: {
    50: '#665c9f',
    500: '#172177',
    950: '#000000',
  },
}
SCSS
$custom: #172177;
$custom-light: #665c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#172177",
  "rgb": {
    "r": 23,
    "g": 33,
    "b": 119
  },
  "hsl": {
    "h": 233.75,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30812,
    "c": 0.14463,
    "h": 269.8
  },
  "luminance": 0.02602
}

Semantic roles & 50–950 ramp

primary
#172177
secondary
#ACA13E
accent
#D83DEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040F
muted
#7A797E

Preview Lab

Preview with #172177

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

Preview Lab → · Contrast checker → · Palette generator →

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