#280C42#280C42

#280C42 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.5% C 0.096 H 303.3°. Best body text is #FFFFFF at 17.19:1 contrast (WCAG AA passes).

Color values

HEX#280C42
RGBrgb(40, 12, 66)
HSLhsl(271, 69%, 15%)
HSVhsv(271, 82%, 26%)
CMYKcmyk(39.4%, 81.8%, 0%, 74.1%)
CIE-LABlab(9.86, 26.35, -28.27)
CIE-LCHlch(9.86, 38.65, 312.99°)
OKLaboklab(23.47% 0.0529 -0.0805)
OKLCHoklch(23.47% 0.096 303.3)
XYZxyz(1.9897, 1.1074, 5.2621)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#280C42 #26420C
analogous
#0D0C42 #280C42 #420C41
triadic
#280C42 #42280C #0C4228
tetradic
#280C42 #420D0C #26420C #0C4142
square
#280C42 #420D0C #26420C #0C4142
split-complementary
#280C42 #41420C #0C420D
monochromatic
#10051A #10051A #280C42 #471576 #671FAA

Accessibility & contrast

On white

17.19
#280C42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#280C42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #280C42
17.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##280C42#FFFFFF#000000##FFFFFF
##280C421.0017.191.2217.19
#FFFFFF17.191.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B44
Deuteranopia (green-blind)
#001B41
Tritanopia (blue-blind)
#231926
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #280c42;
/* rgb */ color: rgb(40, 12, 66);
/* oklch */ color: oklch(23.5% 0.096 303.3);
Tailwind
colors: {
  custom: {
    50: '#654e77',
    500: '#280c42',
    950: '#000000',
  },
}
SCSS
$custom: #280c42;
$custom-light: #654e77;
$custom-dark: #000000;
JSON
{
  "hex": "#280c42",
  "rgb": {
    "r": 40,
    "g": 12,
    "b": 66
  },
  "hsl": {
    "h": 271.111,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.23466,
    "c": 0.09631,
    "h": 303.3
  },
  "luminance": 0.01107
}

Semantic roles & 50–950 ramp

primary
#280C42
secondary
#537E2C
accent
#EC3C91
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #280C42

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

Preview Lab → · Contrast checker → · Palette generator →

#280C42 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva