#280542#280542

#280542 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.6% C 0.106 H 305.1°. Best body text is #FFFFFF at 17.64:1 contrast (WCAG AA passes).

Color values

HEX#280542
RGBrgb(40, 5, 66)
HSLhsl(274, 86%, 14%)
HSVhsv(274, 92%, 26%)
CMYKcmyk(39.4%, 92.4%, 0%, 74.1%)
CIE-LABlab(8.59, 29.99, -30.33)
CIE-LCHlch(8.59, 42.65, 314.68°)
OKLaboklab(22.58% 0.0607 -0.0865)
OKLCHoklch(22.58% 0.106 305.1)
XYZxyz(1.9125, 0.9530, 5.2364)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#280542 #1F4205
analogous
#0A0542 #280542 #42053E
triadic
#280542 #422805 #054228
tetradic
#280542 #420A05 #1F4205 #053E42
square
#280542 #420A05 #1F4205 #053E42
split-complementary
#280542 #3E4205 #05420A
monochromatic
#11021C #11021C #280542 #4A097B #6D0EB4

Accessibility & contrast

On white

17.64
#280542 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #280542
17.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##280542#FFFFFF#000000##FFFFFF
##2805421.0017.641.1917.64
#FFFFFF17.641.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001844
Deuteranopia (green-blind)
#001941
Tritanopia (blue-blind)
#231624
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #280542;
/* rgb */ color: rgb(40, 5, 66);
/* oklch */ color: oklch(22.6% 0.106 305.1);
Tailwind
colors: {
  custom: {
    50: '#664a77',
    500: '#280542',
    950: '#000000',
  },
}
SCSS
$custom: #280542;
$custom-light: #664a77;
$custom-dark: #000000;
JSON
{
  "hex": "#280542",
  "rgb": {
    "r": 40,
    "g": 5,
    "b": 66
  },
  "hsl": {
    "h": 274.426,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.22582,
    "c": 0.10569,
    "h": 305.1
  },
  "luminance": 0.00953
}

Semantic roles & 50–950 ramp

primary
#280542
secondary
#4A8220
accent
#FC2C85
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #280542

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

Preview Lab → · Contrast checker → · Palette generator →

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