#172876#172876

#172876 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.0% C 0.135 H 268.0°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#172876
RGBrgb(23, 40, 118)
HSLhsl(229, 67%, 28%)
HSVhsv(229, 81%, 46%)
CMYKcmyk(80.5%, 66.1%, 0%, 53.7%)
CIE-LABlab(20.07, 23.79, -46.52)
CIE-LCHlch(20.07, 52.24, 297.08°)
OKLaboklab(32.02% -0.0046 -0.1345)
OKLCHoklch(32.02% 0.135 268)
XYZxyz(4.3810, 3.0073, 17.4856)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172876 #766517
analogous
#175876 #172876 #351776
triadic
#172876 #761728 #287617
tetradic
#172876 #761758 #766517 #177635
square
#172876 #761758 #766517 #177635
split-complementary
#172876 #763517 #587617
monochromatic
#05091A #0D1743 #172876 #2139A9 #314ED7

Accessibility & contrast

On white

13.11
#172876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#172876 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172876
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172876#FFFFFF#000000##FFFFFF
##1728761.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003579
Deuteranopia (green-blind)
#002C75
Tritanopia (blue-blind)
#003C4B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #172876;
/* rgb */ color: rgb(23, 40, 118);
/* oklch */ color: oklch(32.0% 0.135 268.0);
Tailwind
colors: {
  custom: {
    50: '#65619e',
    500: '#172876',
    950: '#000000',
  },
}
SCSS
$custom: #172876;
$custom-light: #65619e;
$custom-dark: #000000;
JSON
{
  "hex": "#172876",
  "rgb": {
    "r": 23,
    "g": 40,
    "b": 118
  },
  "hsl": {
    "h": 229.263,
    "s": 67.376,
    "l": 27.647
  },
  "oklch": {
    "l": 0.32024,
    "c": 0.13463,
    "h": 268
  },
  "luminance": 0.03008
}

Semantic roles & 50–950 ramp

primary
#172876
secondary
#AB983E
accent
#CB3EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #172876

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

Preview Lab → · Contrast checker → · Palette generator →

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