#28043C#28043C

#28043C is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.9% C 0.101 H 309.6°. Best body text is #FFFFFF at 17.91:1 contrast (WCAG AA passes).

Color values

HEX#28043C
RGBrgb(40, 4, 60)
HSLhsl(279, 88%, 13%)
HSVhsv(279, 93%, 24%)
CMYKcmyk(33.3%, 93.3%, 0%, 76.5%)
CIE-LABlab(7.81, 29.01, -27.32)
CIE-LCHlch(7.81, 39.85, 316.71°)
OKLaboklab(21.85% 0.0641 -0.0776)
OKLCHoklch(21.85% 0.101 309.6)
XYZxyz(1.7339, 0.8642, 4.3496)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28043C #183C04
analogous
#0C043C #28043C #3C0434
triadic
#28043C #3C2804 #043C28
tetradic
#28043C #3C0C04 #183C04 #04343C
square
#28043C #3C0C04 #183C04 #04343C
split-complementary
#28043C #343C04 #043C0C
monochromatic
#13021D #13021D #28043C #4E0875 #740CAF

Accessibility & contrast

On white

17.91
#28043C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#28043C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28043C
17.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28043C#FFFFFF#000000##FFFFFF
##28043C1.0017.911.1717.91
#FFFFFF17.911.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00163D
Deuteranopia (green-blind)
#00183B
Tritanopia (blue-blind)
#251220
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #28043c;
/* rgb */ color: rgb(40, 4, 60);
/* oklch */ color: oklch(21.9% 0.101 309.6);
Tailwind
colors: {
  custom: {
    50: '#654972',
    500: '#28043c',
    950: '#000000',
  },
}
SCSS
$custom: #28043c;
$custom-light: #654972;
$custom-dark: #000000;
JSON
{
  "hex": "#28043c",
  "rgb": {
    "r": 40,
    "g": 4,
    "b": 60
  },
  "hsl": {
    "h": 278.571,
    "s": 87.5,
    "l": 12.549
  },
  "oklch": {
    "l": 0.21851,
    "c": 0.10071,
    "h": 309.6
  },
  "luminance": 0.00864
}

Semantic roles & 50–950 ramp

primary
#28043C
secondary
#407E1E
accent
#FE2A76
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060108
muted
#7A777B

Preview Lab

Preview with #28043C

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

Preview Lab → · Contrast checker → · Palette generator →

#28043C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva