#281580#281580

#281580 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.2% C 0.164 H 279.2°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#281580
RGBrgb(40, 21, 128)
HSLhsl(251, 72%, 29%)
HSVhsv(251, 84%, 50%)
CMYKcmyk(68.8%, 83.6%, 0%, 49.8%)
CIE-LABlab(18.12, 40.74, -56.06)
CIE-LCHlch(18.12, 69.30, 306.01°)
OKLaboklab(31.25% 0.0262 -0.1619)
OKLCHoklch(31.25% 0.164 279.2)
XYZxyz(5.0383, 2.5455, 20.6437)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281580 #6D8015
analogous
#153880 #281580 #5E1580
triadic
#281580 #802815 #158028
tetradic
#281580 #801538 #6D8015 #15805E
square
#281580 #801538 #6D8015 #15805E
split-complementary
#281580 #805E15 #388015
monochromatic
#08041A #180C4B #281580 #381EB5 #5032DD

Accessibility & contrast

On white

13.91
#281580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#281580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281580
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281580#FFFFFF#000000##FFFFFF
##2815801.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003083
Deuteranopia (green-blind)
#00287E
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #281580;
/* rgb */ color: rgb(40, 21, 128);
/* oklch */ color: oklch(31.2% 0.164 279.2);
Tailwind
colors: {
  custom: {
    50: '#7057a6',
    500: '#281580',
    950: '#000000',
  },
}
SCSS
$custom: #281580;
$custom-light: #7057a6;
$custom-dark: #000000;
JSON
{
  "hex": "#281580",
  "rgb": {
    "r": 40,
    "g": 21,
    "b": 128
  },
  "hsl": {
    "h": 250.654,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31248,
    "c": 0.164,
    "h": 279.2
  },
  "luminance": 0.02546
}

Semantic roles & 50–950 ramp

primary
#281580
secondary
#9FB53C
accent
#EF39CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #281580

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

Preview Lab → · Contrast checker → · Palette generator →

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