#28174A#28174A

#28174A is a dark, moderate violet. Relative luminance 0.016; OKLCH L 25.9% C 0.090 H 294.6°. Best body text is #FFFFFF at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#28174A
RGBrgb(40, 23, 74)
HSLhsl(260, 53%, 19%)
HSVhsv(260, 69%, 29%)
CMYKcmyk(45.9%, 68.9%, 0%, 71%)
CIE-LABlab(12.97, 22.15, -28.81)
CIE-LCHlch(12.97, 36.34, 307.55°)
OKLaboklab(25.93% 0.0376 -0.0821)
OKLCHoklch(25.93% 0.09 294.6)
XYZxyz(2.4172, 1.5583, 6.6507)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28174A #394A17
analogous
#17204A #28174A #42174A
triadic
#28174A #4A2817 #174A28
tetradic
#28174A #4A1720 #394A17 #174A42
square
#28174A #4A1720 #394A17 #174A42
split-complementary
#28174A #4A4217 #204A17
monochromatic
#0D0717 #0F081B #28174A #412679 #5A34A7

Accessibility & contrast

On white

16.01
#28174A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#28174A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28174A
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28174A#FFFFFF#000000##FFFFFF
##28174A1.0016.011.3116.01
#FFFFFF16.011.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224C
Deuteranopia (green-blind)
#002149
Tritanopia (blue-blind)
#1F232E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #28174a;
/* rgb */ color: rgb(40, 23, 74);
/* oklch */ color: oklch(25.9% 0.090 294.6);
Tailwind
colors: {
  custom: {
    50: '#65557d',
    500: '#28174a',
    950: '#000000',
  },
}
SCSS
$custom: #28174a;
$custom-light: #65557d;
$custom-dark: #000000;
JSON
{
  "hex": "#28174a",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 74
  },
  "hsl": {
    "h": 260,
    "s": 52.577,
    "l": 19.02
  },
  "oklch": {
    "l": 0.25926,
    "c": 0.09035,
    "h": 294.6
  },
  "luminance": 0.01558
}

Semantic roles & 50–950 ramp

primary
#28174A
secondary
#6A813C
accent
#DC4CAC
background
#F6F4F7
surface
#EBE8EE
border
#C6C4C9
text
#060309
muted
#7A787B

Preview Lab

Preview with #28174A

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

Preview Lab → · Contrast checker → · Palette generator →

#28174A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva