#281584#281584

#281584 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.169 H 278.5°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#281584
RGBrgb(40, 21, 132)
HSLhsl(250, 73%, 30%)
HSVhsv(250, 84%, 52%)
CMYKcmyk(69.7%, 84.1%, 0%, 48.2%)
CIE-LABlab(18.60, 41.98, -57.81)
CIE-LCHlch(18.60, 71.45, 305.99°)
OKLaboklab(31.71% 0.0249 -0.167)
OKLCHoklch(31.71% 0.169 278.5)
XYZxyz(5.3068, 2.6529, 22.0577)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281584 #718415
analogous
#153A84 #281584 #5F1584
triadic
#281584 #842815 #158428
tetradic
#281584 #84153A #718415 #15845F
square
#281584 #84153A #718415 #15845F
split-complementary
#281584 #845F15 #3A8415
monochromatic
#08041A #180D4F #281584 #381DB9 #5235DF

Accessibility & contrast

On white

13.72
#281584 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#281584 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281584
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281584#FFFFFF#000000##FFFFFF
##2815841.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003187
Deuteranopia (green-blind)
#002982
Tritanopia (blue-blind)
#00384E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #281584;
/* rgb */ color: rgb(40, 21, 132);
/* oklch */ color: oklch(31.7% 0.169 278.5);
Tailwind
colors: {
  custom: {
    50: '#7157a9',
    500: '#281584',
    950: '#000000',
  },
}
SCSS
$custom: #281584;
$custom-light: #7157a9;
$custom-dark: #000000;
JSON
{
  "hex": "#281584",
  "rgb": {
    "r": 40,
    "g": 21,
    "b": 132
  },
  "hsl": {
    "h": 250.27,
    "s": 72.549,
    "l": 30
  },
  "oklch": {
    "l": 0.31714,
    "c": 0.16883,
    "h": 278.5
  },
  "luminance": 0.02653
}

Semantic roles & 50–950 ramp

primary
#281584
secondary
#A3B93C
accent
#EF39D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #281584

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

Preview Lab → · Contrast checker → · Palette generator →

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