#281561#281561

#281561 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 27.8% C 0.125 H 286.6°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).

Color values

HEX#281561
RGBrgb(40, 21, 97)
HSLhsl(255, 64%, 23%)
HSVhsv(255, 78%, 38%)
CMYKcmyk(58.8%, 78.4%, 0%, 62%)
CIE-LABlab(14.68, 30.87, -41.61)
CIE-LCHlch(14.68, 51.82, 306.57°)
OKLaboklab(27.82% 0.0356 -0.1197)
OKLCHoklch(27.82% 0.125 286.6)
XYZxyz(3.3003, 1.8503, 11.4902)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281561 #4E6115
analogous
#152861 #281561 #4E1561
triadic
#281561 #612815 #156128
tetradic
#281561 #611528 #4E6115 #15614E
square
#281561 #611528 #4E6115 #15614E
split-complementary
#281561 #614E15 #286115
monochromatic
#0A0519 #130A2F #281561 #3D2093 #512BC6

Accessibility & contrast

On white

15.33
#281561 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#281561 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281561
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281561#FFFFFF#000000##FFFFFF
##2815611.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002763
Deuteranopia (green-blind)
#002360
Tritanopia (blue-blind)
#0F2A3A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #281561;
/* rgb */ color: rgb(40, 21, 97);
/* oklch */ color: oklch(27.8% 0.125 286.6);
Tailwind
colors: {
  custom: {
    50: '#69548f',
    500: '#281561',
    950: '#000000',
  },
}
SCSS
$custom: #281561;
$custom-light: #69548f;
$custom-dark: #000000;
JSON
{
  "hex": "#281561",
  "rgb": {
    "r": 40,
    "g": 21,
    "b": 97
  },
  "hsl": {
    "h": 255,
    "s": 64.407,
    "l": 23.137
  },
  "oklch": {
    "l": 0.27817,
    "c": 0.12492,
    "h": 286.6
  },
  "luminance": 0.01851
}

Semantic roles & 50–950 ramp

primary
#281561
secondary
#81983A
accent
#E740BE
background
#F6F5F8
surface
#EBE8F0
border
#C6C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #281561

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

Preview Lab → · Contrast checker → · Palette generator →

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