#280C40#280C40

#280C40 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.3% C 0.094 H 304.6°. Best body text is #FFFFFF at 17.26:1 contrast (WCAG AA passes).

Color values

HEX#280C40
RGBrgb(40, 12, 64)
HSLhsl(272, 68%, 15%)
HSVhsv(272, 81%, 25%)
CMYKcmyk(37.5%, 81.2%, 0%, 74.9%)
CIE-LABlab(9.67, 25.79, -27.15)
CIE-LCHlch(9.67, 37.44, 313.52°)
OKLaboklab(23.28% 0.0533 -0.0772)
OKLCHoklch(23.28% 0.094 304.6)
XYZxyz(1.9317, 1.0842, 4.9570)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#280C40 #24400C
analogous
#0E0C40 #280C40 #400C3E
triadic
#280C40 #40280C #0C4028
tetradic
#280C40 #400E0C #24400C #0C3E40
square
#280C40 #400E0C #24400C #0C3E40
split-complementary
#280C40 #3E400C #0C400E
monochromatic
#10051A #10051A #280C40 #481674 #681FA7

Accessibility & contrast

On white

17.26
#280C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#280C40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #280C40
17.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##280C40#FFFFFF#000000##FFFFFF
##280C401.0017.261.2217.26
#FFFFFF17.261.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A42
Deuteranopia (green-blind)
#001B3F
Tritanopia (blue-blind)
#231825
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #280c40;
/* rgb */ color: rgb(40, 12, 64);
/* oklch */ color: oklch(23.3% 0.094 304.6);
Tailwind
colors: {
  custom: {
    50: '#654d75',
    500: '#280c40',
    950: '#000000',
  },
}
SCSS
$custom: #280c40;
$custom-light: #654d75;
$custom-dark: #000000;
JSON
{
  "hex": "#280c40",
  "rgb": {
    "r": 40,
    "g": 12,
    "b": 64
  },
  "hsl": {
    "h": 272.308,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.23281,
    "c": 0.09381,
    "h": 304.6
  },
  "luminance": 0.01084
}

Semantic roles & 50–950 ramp

primary
#280C40
secondary
#517C2C
accent
#EB3D8D
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #280C40

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

Preview Lab → · Contrast checker → · Palette generator →

#280C40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva