#281582#281582

#281582 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.166 H 278.8°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#281582
RGBrgb(40, 21, 130)
HSLhsl(250, 72%, 30%)
HSVhsv(250, 84%, 51%)
CMYKcmyk(69.2%, 83.8%, 0%, 49%)
CIE-LABlab(18.36, 41.36, -56.94)
CIE-LCHlch(18.36, 70.38, 305.99°)
OKLaboklab(31.48% 0.0256 -0.1644)
OKLCHoklch(31.48% 0.166 278.8)
XYZxyz(5.1712, 2.5987, 21.3439)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281582 #6F8215
analogous
#153882 #281582 #5F1582
triadic
#281582 #822815 #158228
tetradic
#281582 #821538 #6F8215 #15825F
square
#281582 #821538 #6F8215 #15825F
split-complementary
#281582 #825F15 #388215
monochromatic
#08041A #180C4D #281582 #381EB7 #5133DE

Accessibility & contrast

On white

13.82
#281582 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#281582 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281582
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281582#FFFFFF#000000##FFFFFF
##2815821.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003185
Deuteranopia (green-blind)
#002880
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #281582;
/* rgb */ color: rgb(40, 21, 130);
/* oklch */ color: oklch(31.5% 0.166 278.8);
Tailwind
colors: {
  custom: {
    50: '#7157a8',
    500: '#281582',
    950: '#000000',
  },
}
SCSS
$custom: #281582;
$custom-light: #7157a8;
$custom-dark: #000000;
JSON
{
  "hex": "#281582",
  "rgb": {
    "r": 40,
    "g": 21,
    "b": 130
  },
  "hsl": {
    "h": 250.459,
    "s": 72.185,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31481,
    "c": 0.16642,
    "h": 278.8
  },
  "luminance": 0.02599
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #281582

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

Preview Lab → · Contrast checker → · Palette generator →

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