#280746#280746

#280746 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.2% C 0.108 H 302.1°. Best body text is #FFFFFF at 17.37:1 contrast (WCAG AA passes).

Color values

HEX#280746
RGBrgb(40, 7, 70)
HSLhsl(271, 82%, 15%)
HSVhsv(271, 90%, 27%)
CMYKcmyk(42.9%, 90%, 0%, 72.5%)
CIE-LABlab(9.36, 30.00, -31.90)
CIE-LCHlch(9.36, 43.79, 313.24°)
OKLaboklab(23.24% 0.0571 -0.0911)
OKLCHoklch(23.24% 0.108 302.1)
XYZxyz(2.0563, 1.0453, 5.8866)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#280746 #254607
analogous
#090746 #280746 #460744
triadic
#280746 #462807 #074628
tetradic
#280746 #460907 #254607 #074446
square
#280746 #460907 #254607 #074446
split-complementary
#280746 #444607 #074609
monochromatic
#10031C #10031C #280746 #480D7E #6812B5

Accessibility & contrast

On white

17.37
#280746 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#280746 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #280746
17.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##280746#FFFFFF#000000##FFFFFF
##2807461.0017.371.2117.37
#FFFFFF17.371.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A48
Deuteranopia (green-blind)
#001A45
Tritanopia (blue-blind)
#211827
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #280746;
/* rgb */ color: rgb(40, 7, 70);
/* oklch */ color: oklch(23.2% 0.108 302.1);
Tailwind
colors: {
  custom: {
    50: '#664b7a',
    500: '#280746',
    950: '#000000',
  },
}
SCSS
$custom: #280746;
$custom-light: #664b7a;
$custom-dark: #000000;
JSON
{
  "hex": "#280746",
  "rgb": {
    "r": 40,
    "g": 7,
    "b": 70
  },
  "hsl": {
    "h": 271.429,
    "s": 81.818,
    "l": 15.098
  },
  "oklch": {
    "l": 0.23241,
    "c": 0.10751,
    "h": 302.1
  },
  "luminance": 0.01045
}

Semantic roles & 50–950 ramp

primary
#280746
secondary
#528524
accent
#F8308F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #280746

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

Preview Lab → · Contrast checker → · Palette generator →

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