#280840#280840

#280840 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.8% C 0.099 H 305.7°. Best body text is #FFFFFF at 17.51:1 contrast (WCAG AA passes).

Color values

HEX#280840
RGBrgb(40, 8, 64)
HSLhsl(274, 78%, 14%)
HSVhsv(274, 88%, 25%)
CMYKcmyk(37.5%, 87.5%, 0%, 74.9%)
CIE-LABlab(8.95, 27.85, -28.33)
CIE-LCHlch(8.95, 39.72, 314.51°)
OKLaboklab(22.77% 0.0579 -0.0806)
OKLCHoklch(22.77% 0.099 305.7)
XYZxyz(1.8871, 0.9950, 4.9421)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#280840 #204008
analogous
#0C0840 #280840 #40083C
triadic
#280840 #402808 #084028
tetradic
#280840 #400C08 #204008 #083C40
square
#280840 #400C08 #204008 #083C40
split-complementary
#280840 #3C4008 #08400C
monochromatic
#11031B #11031B #280840 #4A0F76 #6C16AD

Accessibility & contrast

On white

17.51
#280840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#280840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #280840
17.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##280840#FFFFFF#000000##FFFFFF
##2808401.0017.511.2017.51
#FFFFFF17.511.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001942
Deuteranopia (green-blind)
#00193F
Tritanopia (blue-blind)
#241624
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #280840;
/* rgb */ color: rgb(40, 8, 64);
/* oklch */ color: oklch(22.8% 0.099 305.7);
Tailwind
colors: {
  custom: {
    50: '#654b75',
    500: '#280840',
    950: '#000000',
  },
}
SCSS
$custom: #280840;
$custom-light: #654b75;
$custom-dark: #000000;
JSON
{
  "hex": "#280840",
  "rgb": {
    "r": 40,
    "g": 8,
    "b": 64
  },
  "hsl": {
    "h": 274.286,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.22769,
    "c": 0.09926,
    "h": 305.7
  },
  "luminance": 0.00995
}

Semantic roles & 50–950 ramp

primary
#280840
secondary
#4C7E25
accent
#F43486
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #280840

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

Preview Lab → · Contrast checker → · Palette generator →

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