#280F52#280F52

#280F52 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.113 H 293.8°. Best body text is #FFFFFF at 16.40:1 contrast (WCAG AA passes).

Color values

HEX#280F52
RGBrgb(40, 15, 82)
HSLhsl(262, 69%, 19%)
HSVhsv(262, 82%, 32%)
CMYKcmyk(51.2%, 81.7%, 0%, 67.8%)
CIE-LABlab(11.97, 29.48, -35.95)
CIE-LCHlch(11.97, 46.49, 309.36°)
OKLaboklab(25.44% 0.0454 -0.1031)
OKLCHoklch(25.44% 0.113 293.8)
XYZxyz(2.5685, 1.4019, 8.1163)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#280F52 #39520F
analogous
#0F1852 #280F52 #4A0F52
triadic
#280F52 #52280F #0F5228
tetradic
#280F52 #520F18 #39520F #0F524A
square
#280F52 #520F18 #39520F #0F524A
split-complementary
#280F52 #524A0F #18520F
monochromatic
#0D051A #0F061E #280F52 #411886 #5A22B9

Accessibility & contrast

On white

16.40
#280F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#280F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #280F52
16.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##280F52#FFFFFF#000000##FFFFFF
##280F521.0016.401.2816.40
#FFFFFF16.401.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002054
Deuteranopia (green-blind)
#001E51
Tritanopia (blue-blind)
#1B2130
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #280f52;
/* rgb */ color: rgb(40, 15, 82);
/* oklch */ color: oklch(25.4% 0.113 293.8);
Tailwind
colors: {
  custom: {
    50: '#675083',
    500: '#280f52',
    950: '#000000',
  },
}
SCSS
$custom: #280f52;
$custom-light: #675083;
$custom-dark: #000000;
JSON
{
  "hex": "#280f52",
  "rgb": {
    "r": 40,
    "g": 15,
    "b": 82
  },
  "hsl": {
    "h": 262.388,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.25438,
    "c": 0.11264,
    "h": 293.8
  },
  "luminance": 0.01402
}

Semantic roles & 50–950 ramp

primary
#280F52
secondary
#6A8C31
accent
#EC3CAA
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #280F52

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

Preview Lab → · Contrast checker → · Palette generator →

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