#280742#280742

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

Color values

HEX#280742
RGBrgb(40, 7, 66)
HSLhsl(274, 81%, 14%)
HSVhsv(274, 89%, 26%)
CMYKcmyk(39.4%, 89.4%, 0%, 74.1%)
CIE-LABlab(8.96, 28.92, -29.73)
CIE-LCHlch(8.96, 41.47, 314.21°)
OKLaboklab(22.84% 0.0584 -0.0848)
OKLCHoklch(22.84% 0.103 304.6)
XYZxyz(1.9342, 0.9964, 5.2436)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#280742 #214207
analogous
#0A0742 #280742 #42073F
triadic
#280742 #422807 #074228
tetradic
#280742 #420A07 #214207 #073F42
square
#280742 #420A07 #214207 #073F42
split-complementary
#280742 #3F4207 #07420A
monochromatic
#11031C #11031C #280742 #4A0D79 #6B13B1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##280742#FFFFFF#000000##FFFFFF
##2807421.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)
#001944
Deuteranopia (green-blind)
#001941
Tritanopia (blue-blind)
#231725
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #280742;
/* rgb */ color: rgb(40, 7, 66);
/* oklch */ color: oklch(22.8% 0.103 304.6);
Tailwind
colors: {
  custom: {
    50: '#664b77',
    500: '#280742',
    950: '#000000',
  },
}
SCSS
$custom: #280742;
$custom-light: #664b77;
$custom-dark: #000000;
JSON
{
  "hex": "#280742",
  "rgb": {
    "r": 40,
    "g": 7,
    "b": 66
  },
  "hsl": {
    "h": 273.559,
    "s": 80.822,
    "l": 14.314
  },
  "oklch": {
    "l": 0.22838,
    "c": 0.10293,
    "h": 304.6
  },
  "luminance": 0.00996
}

Semantic roles & 50–950 ramp

primary
#280742
secondary
#4D8124
accent
#F73188
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #280742

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

Preview Lab → · Contrast checker → · Palette generator →

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