#28174F#28174F

#28174F is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.098 H 292.4°. Best body text is #FFFFFF at 15.84:1 contrast (WCAG AA passes).

Color values

HEX#28174F
RGBrgb(40, 23, 79)
HSLhsl(258, 55%, 20%)
HSVhsv(258, 71%, 31%)
CMYKcmyk(49.4%, 70.9%, 0%, 69%)
CIE-LABlab(13.40, 23.78, -31.56)
CIE-LCHlch(13.40, 39.51, 307.00°)
OKLaboklab(26.37% 0.0371 -0.0902)
OKLCHoklch(26.37% 0.098 292.4)
XYZxyz(2.5924, 1.6283, 7.5733)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28174F #3E4F17
analogous
#17224F #28174F #44174F
triadic
#28174F #4F2817 #174F28
tetradic
#28174F #4F1722 #3E4F17 #174F44
square
#28174F #4F1722 #3E4F17 #174F44
split-complementary
#28174F #4F4417 #224F17
monochromatic
#0C0718 #100920 #28174F #40257E #5833AE

Accessibility & contrast

On white

15.84
#28174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#28174F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28174F
15.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28174F#FFFFFF#000000##FFFFFF
##28174F1.0015.841.3315.84
#FFFFFF15.841.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002351
Deuteranopia (green-blind)
#00214E
Tritanopia (blue-blind)
#1D2430
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #28174f;
/* rgb */ color: rgb(40, 23, 79);
/* oklch */ color: oklch(26.4% 0.098 292.4);
Tailwind
colors: {
  custom: {
    50: '#665581',
    500: '#28174f',
    950: '#000000',
  },
}
SCSS
$custom: #28174f;
$custom-light: #665581;
$custom-dark: #000000;
JSON
{
  "hex": "#28174f",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 258.214,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.26371,
    "c": 0.09756,
    "h": 292.4
  },
  "luminance": 0.01628
}

Semantic roles & 50–950 ramp

primary
#28174F
secondary
#70863C
accent
#DE4AB1
background
#F6F5F7
surface
#EBE8EE
border
#C6C4C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #28174F

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

Preview Lab → · Contrast checker → · Palette generator →

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