#281565#281565

#281565 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.2% C 0.130 H 285.4°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#281565
RGBrgb(40, 21, 101)
HSLhsl(254, 66%, 24%)
HSVhsv(254, 79%, 40%)
CMYKcmyk(60.4%, 79.2%, 0%, 60.4%)
CIE-LABlab(15.10, 32.17, -43.58)
CIE-LCHlch(15.10, 54.16, 306.43°)
OKLaboklab(28.24% 0.0346 -0.1255)
OKLCHoklch(28.24% 0.13 285.4)
XYZxyz(3.4915, 1.9268, 12.4973)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281565 #526515
analogous
#152A65 #281565 #501565
triadic
#281565 #652815 #156528
tetradic
#281565 #65152A #526515 #156550
square
#281565 #65152A #526515 #156550
split-complementary
#281565 #655015 #2A6515
monochromatic
#0A0519 #140A32 #281565 #3C2098 #502ACA

Accessibility & contrast

On white

15.16
#281565 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281565
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281565#FFFFFF#000000##FFFFFF
##2815651.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002867
Deuteranopia (green-blind)
#002364
Tritanopia (blue-blind)
#092B3C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #281565;
/* rgb */ color: rgb(40, 21, 101);
/* oklch */ color: oklch(28.2% 0.130 285.4);
Tailwind
colors: {
  custom: {
    50: '#6a5592',
    500: '#281565',
    950: '#000000',
  },
}
SCSS
$custom: #281565;
$custom-light: #6a5592;
$custom-dark: #000000;
JSON
{
  "hex": "#281565",
  "rgb": {
    "r": 40,
    "g": 21,
    "b": 101
  },
  "hsl": {
    "h": 254.25,
    "s": 65.574,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28238,
    "c": 0.13015,
    "h": 285.4
  },
  "luminance": 0.01927
}

Semantic roles & 50–950 ramp

primary
#281565
secondary
#859C3A
accent
#E93FC0
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #281565

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

Preview Lab → · Contrast checker → · Palette generator →

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