#171874#171874

#171874 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.0% C 0.150 H 271.6°. Best body text is #FFFFFF at 14.80:1 contrast (WCAG AA passes).

Color values

HEX#171874
RGBrgb(23, 24, 116)
HSLhsl(239, 67%, 27%)
HSVhsv(239, 80%, 45%)
CMYKcmyk(80.2%, 79.3%, 0%, 54.5%)
CIE-LABlab(15.98, 33.58, -51.96)
CIE-LCHlch(15.98, 61.87, 302.87°)
OKLaboklab(29.01% 0.0041 -0.1504)
OKLCHoklch(29.01% 0.15 271.6)
XYZxyz(3.8313, 2.0960, 16.7223)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171874 #747317
analogous
#174674 #171874 #451774
triadic
#171874 #741718 #187417
tetradic
#171874 #741746 #747317 #177445
square
#171874 #741746 #747317 #177445
split-complementary
#171874 #744517 #467417
monochromatic
#05051A #0D0D41 #171874 #2123A7 #3031D6

Accessibility & contrast

On white

14.80
#171874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#171874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171874
14.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171874#FFFFFF#000000##FFFFFF
##1718741.0014.801.4214.80
#FFFFFF14.801.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C77
Deuteranopia (green-blind)
#002372
Tritanopia (blue-blind)
#003345
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #171874;
/* rgb */ color: rgb(23, 24, 116);
/* oklch */ color: oklch(29.0% 0.150 271.6);
Tailwind
colors: {
  custom: {
    50: '#66569d',
    500: '#171874',
    950: '#000000',
  },
}
SCSS
$custom: #171874;
$custom-light: #66569d;
$custom-dark: #000000;
JSON
{
  "hex": "#171874",
  "rgb": {
    "r": 23,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 239.355,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.29005,
    "c": 0.15049,
    "h": 271.6
  },
  "luminance": 0.02096
}

Semantic roles & 50–950 ramp

primary
#171874
secondary
#A9A83D
accent
#E83EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #171874

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

Preview Lab → · Contrast checker → · Palette generator →

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