#281566#281566

#281566 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.3% C 0.131 H 285.1°. Best body text is #FFFFFF at 15.11:1 contrast (WCAG AA passes).

Color values

HEX#281566
RGBrgb(40, 21, 102)
HSLhsl(254, 66%, 24%)
HSVhsv(254, 79%, 40%)
CMYKcmyk(60.8%, 79.4%, 0%, 60%)
CIE-LABlab(15.20, 32.49, -44.06)
CIE-LCHlch(15.20, 54.75, 306.40°)
OKLaboklab(28.34% 0.0343 -0.1269)
OKLCHoklch(28.34% 0.131 285.1)
XYZxyz(3.5408, 1.9465, 12.7569)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281566 #536615
analogous
#152B66 #281566 #511566
triadic
#281566 #662815 #156628
tetradic
#281566 #66152B #536615 #156651
square
#281566 #66152B #536615 #156651
split-complementary
#281566 #665115 #2B6615
monochromatic
#0A0519 #140B33 #281566 #3C1F99 #502ACC

Accessibility & contrast

On white

15.11
#281566 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#281566 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281566
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281566#FFFFFF#000000##FFFFFF
##2815661.0015.111.3915.11
#FFFFFF15.111.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002868
Deuteranopia (green-blind)
#002465
Tritanopia (blue-blind)
#082C3C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #281566;
/* rgb */ color: rgb(40, 21, 102);
/* oklch */ color: oklch(28.3% 0.131 285.1);
Tailwind
colors: {
  custom: {
    50: '#6a5593',
    500: '#281566',
    950: '#000000',
  },
}
SCSS
$custom: #281566;
$custom-light: #6a5593;
$custom-dark: #000000;
JSON
{
  "hex": "#281566",
  "rgb": {
    "r": 40,
    "g": 21,
    "b": 102
  },
  "hsl": {
    "h": 254.074,
    "s": 65.854,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28344,
    "c": 0.13145,
    "h": 285.1
  },
  "luminance": 0.01947
}

Semantic roles & 50–950 ramp

primary
#281566
secondary
#869D3A
accent
#E93FC1
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #281566

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

Preview Lab → · Contrast checker → · Palette generator →

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