#172678#172678

#172678 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.8% C 0.140 H 268.6°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#172678
RGBrgb(23, 38, 120)
HSLhsl(231, 68%, 28%)
HSVhsv(231, 81%, 47%)
CMYKcmyk(80.8%, 68.3%, 0%, 52.9%)
CIE-LABlab(19.74, 25.97, -48.35)
CIE-LCHlch(19.74, 54.88, 298.25°)
OKLaboklab(31.84% -0.0035 -0.1399)
OKLCHoklch(31.84% 0.14 268.6)
XYZxyz(4.4355, 2.9240, 18.0963)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172678 #786917
analogous
#175678 #172678 #391778
triadic
#172678 #781726 #267817
tetradic
#172678 #781756 #786917 #177839
square
#172678 #781756 #786917 #177839
split-complementary
#172678 #783917 #567817
monochromatic
#05081A #0D1645 #172678 #2136AB #324BD8

Accessibility & contrast

On white

13.25
#172678 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#172678 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172678
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172678#FFFFFF#000000##FFFFFF
##1726781.0013.251.5813.25
#FFFFFF13.251.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347B
Deuteranopia (green-blind)
#002B76
Tritanopia (blue-blind)
#003C4B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #172678;
/* rgb */ color: rgb(23, 38, 120);
/* oklch */ color: oklch(31.8% 0.140 268.6);
Tailwind
colors: {
  custom: {
    50: '#6660a0',
    500: '#172678',
    950: '#000000',
  },
}
SCSS
$custom: #172678;
$custom-light: #6660a0;
$custom-dark: #000000;
JSON
{
  "hex": "#172678",
  "rgb": {
    "r": 23,
    "g": 38,
    "b": 120
  },
  "hsl": {
    "h": 230.722,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31837,
    "c": 0.13996,
    "h": 268.6
  },
  "luminance": 0.02924
}

Semantic roles & 50–950 ramp

primary
#172678
secondary
#AD9C3E
accent
#D03DEB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #172678

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

Preview Lab → · Contrast checker → · Palette generator →

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