#281571#281571

#281571 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.145 H 282.3°. Best body text is #FFFFFF at 14.62:1 contrast (WCAG AA passes).

Color values

HEX#281571
RGBrgb(40, 21, 113)
HSLhsl(252, 69%, 26%)
HSVhsv(252, 81%, 44%)
CMYKcmyk(64.6%, 81.4%, 0%, 55.7%)
CIE-LABlab(16.40, 36.02, -49.28)
CIE-LCHlch(16.40, 61.04, 306.16°)
OKLaboklab(29.54% 0.031 -0.1421)
OKLCHoklch(29.54% 0.145 282.3)
XYZxyz(4.1229, 2.1794, 15.8230)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281571 #5E7115
analogous
#153071 #281571 #561571
triadic
#281571 #712815 #157128
tetradic
#281571 #711530 #5E7115 #157156
square
#281571 #711530 #5E7115 #157156
split-complementary
#281571 #715615 #307115
monochromatic
#09051A #160B3D #281571 #3A1FA5 #4D29D7

Accessibility & contrast

On white

14.62
#281571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#281571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281571
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281571#FFFFFF#000000##FFFFFF
##2815711.0014.621.4414.62
#FFFFFF14.621.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00256F
Tritanopia (blue-blind)
#003043
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #281571;
/* rgb */ color: rgb(40, 21, 113);
/* oklch */ color: oklch(29.5% 0.145 282.3);
Tailwind
colors: {
  custom: {
    50: '#6d559b',
    500: '#281571',
    950: '#000000',
  },
}
SCSS
$custom: #281571;
$custom-light: #6d559b;
$custom-dark: #000000;
JSON
{
  "hex": "#281571",
  "rgb": {
    "r": 40,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 252.391,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29543,
    "c": 0.14549,
    "h": 282.3
  },
  "luminance": 0.0218
}

Semantic roles & 50–950 ramp

primary
#281571
secondary
#91A73B
accent
#EB3CC7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #281571

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

Preview Lab → · Contrast checker → · Palette generator →

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