#172378#172378

#172378 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.3% C 0.144 H 269.3°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#172378
RGBrgb(23, 35, 120)
HSLhsl(233, 68%, 28%)
HSVhsv(233, 81%, 47%)
CMYKcmyk(80.8%, 70.8%, 0%, 52.9%)
CIE-LABlab(18.97, 28.03, -49.61)
CIE-LCHlch(18.97, 56.97, 299.46°)
OKLaboklab(31.28% -0.0018 -0.1436)
OKLCHoklch(31.28% 0.144 269.3)
XYZxyz(4.3434, 2.7398, 18.0656)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172378 #786C17
analogous
#175378 #172378 #3B1778
triadic
#172378 #781723 #237817
tetradic
#172378 #781753 #786C17 #17783B
square
#172378 #781753 #786C17 #17783B
split-complementary
#172378 #783B17 #537817
monochromatic
#05071A #0D1445 #172378 #2132AB #3246D8

Accessibility & contrast

On white

13.57
#172378 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#172378 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172378
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172378#FFFFFF#000000##FFFFFF
##1723781.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337B
Deuteranopia (green-blind)
#002976
Tritanopia (blue-blind)
#003A4A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #172378;
/* rgb */ color: rgb(23, 35, 120);
/* oklch */ color: oklch(31.3% 0.144 269.3);
Tailwind
colors: {
  custom: {
    50: '#665ea0',
    500: '#172378',
    950: '#000000',
  },
}
SCSS
$custom: #172378;
$custom-light: #665ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#172378",
  "rgb": {
    "r": 23,
    "g": 35,
    "b": 120
  },
  "hsl": {
    "h": 232.577,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31278,
    "c": 0.14363,
    "h": 269.3
  },
  "luminance": 0.0274
}

Semantic roles & 50–950 ramp

primary
#172378
secondary
#AD9F3E
accent
#D53DEB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040F
muted
#7A797E

Preview Lab

Preview with #172378

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

Preview Lab → · Contrast checker → · Palette generator →

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