#280F40#280F40

#280F40 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.7% C 0.089 H 303.7°. Best body text is #FFFFFF at 17.04:1 contrast (WCAG AA passes).

Color values

HEX#280F40
RGBrgb(40, 15, 64)
HSLhsl(271, 62%, 15%)
HSVhsv(271, 77%, 25%)
CMYKcmyk(37.5%, 76.6%, 0%, 74.9%)
CIE-LABlab(10.28, 24.09, -26.16)
CIE-LCHlch(10.28, 35.57, 312.64°)
OKLaboklab(23.71% 0.0495 -0.0743)
OKLCHoklch(23.71% 0.089 303.7)
XYZxyz(1.9711, 1.1629, 4.9701)
Luminance0.0116 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#280F40 #27400F
analogous
#0F0F40 #280F40 #400F3F
triadic
#280F40 #40280F #0F4028
tetradic
#280F40 #400F0F #27400F #0F3F40
square
#280F40 #400F0F #27400F #0F3F40
split-complementary
#280F40 #3F400F #0F400F
monochromatic
#0F0619 #0F0619 #280F40 #471B72 #6626A3

Accessibility & contrast

On white

17.04
#280F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#280F40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #280F40
17.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##280F40#FFFFFF#000000##FFFFFF
##280F401.0017.041.2317.04
#FFFFFF17.041.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B41
Deuteranopia (green-blind)
#011C3F
Tritanopia (blue-blind)
#231A26
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #280f40;
/* rgb */ color: rgb(40, 15, 64);
/* oklch */ color: oklch(23.7% 0.089 303.7);
Tailwind
colors: {
  custom: {
    50: '#654f75',
    500: '#280f40',
    950: '#000000',
  },
}
SCSS
$custom: #280f40;
$custom-light: #654f75;
$custom-dark: #000000;
JSON
{
  "hex": "#280f40",
  "rgb": {
    "r": 40,
    "g": 15,
    "b": 64
  },
  "hsl": {
    "h": 270.612,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.23713,
    "c": 0.08931,
    "h": 303.7
  },
  "luminance": 0.01163
}

Semantic roles & 50–950 ramp

primary
#280F40
secondary
#557A30
accent
#E54392
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #280F40

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

Preview Lab → · Contrast checker → · Palette generator →

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