#280842#280842

#280842 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.0% C 0.102 H 304.3°. Best body text is #FFFFFF at 17.45:1 contrast (WCAG AA passes).

Color values

HEX#280842
RGBrgb(40, 8, 66)
HSLhsl(273, 78%, 15%)
HSVhsv(273, 88%, 26%)
CMYKcmyk(39.4%, 87.9%, 0%, 74.1%)
CIE-LABlab(9.14, 28.39, -29.43)
CIE-LCHlch(9.14, 40.90, 313.97°)
OKLaboklab(22.96% 0.0573 -0.0839)
OKLCHoklch(22.96% 0.102 304.3)
XYZxyz(1.9450, 1.0181, 5.2473)
Luminance0.0102 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#280842 #224208
analogous
#0B0842 #280842 #42083F
triadic
#280842 #422808 #084228
tetradic
#280842 #420B08 #224208 #083F42
square
#280842 #420B08 #224208 #083F42
split-complementary
#280842 #3F4208 #08420B
monochromatic
#11031B #11031B #280842 #490F79 #6A15AF

Accessibility & contrast

On white

17.45
#280842 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #280842
17.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##280842#FFFFFF#000000##FFFFFF
##2808421.0017.451.2017.45
#FFFFFF17.451.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001944
Deuteranopia (green-blind)
#001A41
Tritanopia (blue-blind)
#231725
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #280842;
/* rgb */ color: rgb(40, 8, 66);
/* oklch */ color: oklch(23.0% 0.102 304.3);
Tailwind
colors: {
  custom: {
    50: '#654b77',
    500: '#280842',
    950: '#000000',
  },
}
SCSS
$custom: #280842;
$custom-light: #654b77;
$custom-dark: #000000;
JSON
{
  "hex": "#280842",
  "rgb": {
    "r": 40,
    "g": 8,
    "b": 66
  },
  "hsl": {
    "h": 273.103,
    "s": 78.378,
    "l": 14.51
  },
  "oklch": {
    "l": 0.22964,
    "c": 0.10159,
    "h": 304.3
  },
  "luminance": 0.01018
}

Semantic roles & 50–950 ramp

primary
#280842
secondary
#4E8025
accent
#F5338A
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #280842

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

Preview Lab → · Contrast checker → · Palette generator →

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