#172874#172874

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

Color values

HEX#172874
RGBrgb(23, 40, 116)
HSLhsl(229, 67%, 27%)
HSVhsv(229, 80%, 45%)
CMYKcmyk(80.2%, 65.5%, 0%, 54.5%)
CIE-LABlab(19.88, 22.98, -45.54)
CIE-LCHlch(19.88, 51.01, 296.78°)
OKLaboklab(31.83% -0.0046 -0.1317)
OKLCHoklch(31.83% 0.132 268)
XYZxyz(4.2634, 2.9602, 16.8663)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172874 #746317
analogous
#175774 #172874 #341774
triadic
#172874 #741728 #287417
tetradic
#172874 #741757 #746317 #177434
square
#172874 #741757 #746317 #177434
split-complementary
#172874 #743417 #577417
monochromatic
#05091A #0D1641 #172874 #213AA7 #304ED6

Accessibility & contrast

On white

13.19
#172874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#172874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172874
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172874#FFFFFF#000000##FFFFFF
##1728741.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003576
Deuteranopia (green-blind)
#002C73
Tritanopia (blue-blind)
#003C4A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #172874;
/* rgb */ color: rgb(23, 40, 116);
/* oklch */ color: oklch(31.8% 0.132 268.0);
Tailwind
colors: {
  custom: {
    50: '#65619d',
    500: '#172874',
    950: '#000000',
  },
}
SCSS
$custom: #172874;
$custom-light: #65619d;
$custom-dark: #000000;
JSON
{
  "hex": "#172874",
  "rgb": {
    "r": 23,
    "g": 40,
    "b": 116
  },
  "hsl": {
    "h": 229.032,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31827,
    "c": 0.13178,
    "h": 268
  },
  "luminance": 0.02961
}

Semantic roles & 50–950 ramp

primary
#172874
secondary
#A9963D
accent
#CA3EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #172874

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

Preview Lab → · Contrast checker → · Palette generator →

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