#173874#173874

#173874 is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.3% C 0.110 H 261.2°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#173874
RGBrgb(23, 56, 116)
HSLhsl(219, 67%, 27%)
HSVhsv(219, 80%, 45%)
CMYKcmyk(80.2%, 51.7%, 0%, 54.5%)
CIE-LABlab(24.55, 11.55, -37.96)
CIE-LCHlch(24.55, 39.68, 286.93°)
OKLaboklab(35.34% -0.017 -0.1091)
OKLCHoklch(35.34% 0.11 261.2)
XYZxyz(4.9188, 4.2709, 17.0847)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173874 #745317
analogous
#176674 #173874 #251774
triadic
#173874 #741738 #387417
tetradic
#173874 #741766 #745317 #177425
square
#173874 #741766 #745317 #177425
split-complementary
#173874 #742517 #667417
monochromatic
#050C1A #0D1F41 #173874 #2151A7 #306BD6

Accessibility & contrast

On white

11.33
#173874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#173874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173874
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173874#FFFFFF#000000##FFFFFF
##1738741.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143F76
Deuteranopia (green-blind)
#003673
Tritanopia (blue-blind)
#004650
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #173874;
/* rgb */ color: rgb(23, 56, 116);
/* oklch */ color: oklch(35.3% 0.110 261.2);
Tailwind
colors: {
  custom: {
    50: '#646e9c',
    500: '#173874',
    950: '#000000',
  },
}
SCSS
$custom: #173874;
$custom-light: #646e9c;
$custom-dark: #000000;
JSON
{
  "hex": "#173874",
  "rgb": {
    "r": 23,
    "g": 56,
    "b": 116
  },
  "hsl": {
    "h": 218.71,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.35337,
    "c": 0.11046,
    "h": 261.2
  },
  "luminance": 0.04271
}

Semantic roles & 50–950 ramp

primary
#173874
secondary
#A9833D
accent
#AD3EEA
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06070E
muted
#7A7A7E

Preview Lab

Preview with #173874

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

Preview Lab → · Contrast checker → · Palette generator →

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