#280540#280540

#280540 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.4% C 0.103 H 306.4°. Best body text is #FFFFFF at 17.71:1 contrast (WCAG AA passes).

Color values

HEX#280540
RGBrgb(40, 5, 64)
HSLhsl(276, 86%, 14%)
HSVhsv(276, 92%, 25%)
CMYKcmyk(37.5%, 92.2%, 0%, 74.9%)
CIE-LABlab(8.39, 29.47, -29.23)
CIE-LCHlch(8.39, 41.51, 315.23°)
OKLaboklab(22.38% 0.0615 -0.0833)
OKLCHoklch(22.38% 0.104 306.4)
XYZxyz(1.8546, 0.9298, 4.9313)
Luminance0.0093 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#280540 #1D4005
analogous
#0A0540 #280540 #40053A
triadic
#280540 #402805 #054028
tetradic
#280540 #400A05 #1D4005 #053A40
square
#280540 #400A05 #1D4005 #053A40
split-complementary
#280540 #3A4005 #05400A
monochromatic
#12021C #12021C #280540 #4B0979 #6F0EB2

Accessibility & contrast

On white

17.71
#280540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#280540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #280540
17.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##280540#FFFFFF#000000##FFFFFF
##2805401.0017.711.1917.71
#FFFFFF17.711.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001742
Deuteranopia (green-blind)
#00183F
Tritanopia (blue-blind)
#241523
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #280540;
/* rgb */ color: rgb(40, 5, 64);
/* oklch */ color: oklch(22.4% 0.103 306.4);
Tailwind
colors: {
  custom: {
    50: '#654a75',
    500: '#280540',
    950: '#000000',
  },
}
SCSS
$custom: #280540;
$custom-light: #654a75;
$custom-dark: #000000;
JSON
{
  "hex": "#280540",
  "rgb": {
    "r": 40,
    "g": 5,
    "b": 64
  },
  "hsl": {
    "h": 275.593,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.22381,
    "c": 0.1035,
    "h": 306.4
  },
  "luminance": 0.0093
}

Semantic roles & 50–950 ramp

primary
#280540
secondary
#478120
accent
#FC2C81
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #280540

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

Preview Lab → · Contrast checker → · Palette generator →

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