#281581#281581

#281581 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.165 H 279.0°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#281581
RGBrgb(40, 21, 129)
HSLhsl(251, 72%, 29%)
HSVhsv(251, 84%, 51%)
CMYKcmyk(69%, 83.7%, 0%, 49.4%)
CIE-LABlab(18.24, 41.05, -56.50)
CIE-LCHlch(18.24, 69.84, 306.00°)
OKLaboklab(31.36% 0.0259 -0.1632)
OKLCHoklch(31.36% 0.165 279)
XYZxyz(5.1044, 2.5720, 20.9921)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281581 #6E8115
analogous
#153881 #281581 #5E1581
triadic
#281581 #812815 #158128
tetradic
#281581 #811538 #6E8115 #15815E
square
#281581 #811538 #6E8115 #15815E
split-complementary
#281581 #815E15 #388115
monochromatic
#08041A #180C4C #281581 #381EB6 #5133DE

Accessibility & contrast

On white

13.87
#281581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281581
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281581#FFFFFF#000000##FFFFFF
##2815811.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003084
Deuteranopia (green-blind)
#00287F
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #281581;
/* rgb */ color: rgb(40, 21, 129);
/* oklch */ color: oklch(31.4% 0.165 279.0);
Tailwind
colors: {
  custom: {
    50: '#7057a7',
    500: '#281581',
    950: '#000000',
  },
}
SCSS
$custom: #281581;
$custom-light: #7057a7;
$custom-dark: #000000;
JSON
{
  "hex": "#281581",
  "rgb": {
    "r": 40,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 250.556,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31364,
    "c": 0.16521,
    "h": 279
  },
  "luminance": 0.02572
}

Semantic roles & 50–950 ramp

primary
#281581
secondary
#A0B63C
accent
#EF39CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #281581

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

Preview Lab → · Contrast checker → · Palette generator →

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