#281568#281568

#281568 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.134 H 284.6°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#281568
RGBrgb(40, 21, 104)
HSLhsl(254, 66%, 25%)
HSVhsv(254, 80%, 41%)
CMYKcmyk(61.5%, 79.8%, 0%, 59.2%)
CIE-LABlab(15.42, 33.13, -45.03)
CIE-LCHlch(15.42, 55.91, 306.35°)
OKLaboklab(28.56% 0.0337 -0.1297)
OKLCHoklch(28.56% 0.134 284.6)
XYZxyz(3.6412, 1.9867, 13.2856)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281568 #556815
analogous
#152C68 #281568 #521568
triadic
#281568 #682815 #156828
tetradic
#281568 #68152C #556815 #156852
square
#281568 #68152C #556815 #156852
split-complementary
#281568 #685215 #2C6815
monochromatic
#0A0519 #140B35 #281568 #3C1F9B #4F2ACE

Accessibility & contrast

On white

15.03
#281568 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#281568 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281568
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281568#FFFFFF#000000##FFFFFF
##2815681.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296A
Deuteranopia (green-blind)
#002466
Tritanopia (blue-blind)
#042D3D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #281568;
/* rgb */ color: rgb(40, 21, 104);
/* oklch */ color: oklch(28.6% 0.134 284.6);
Tailwind
colors: {
  custom: {
    50: '#6b5594',
    500: '#281568',
    950: '#000000',
  },
}
SCSS
$custom: #281568;
$custom-light: #6b5594;
$custom-dark: #000000;
JSON
{
  "hex": "#281568",
  "rgb": {
    "r": 40,
    "g": 21,
    "b": 104
  },
  "hsl": {
    "h": 253.735,
    "s": 66.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.28559,
    "c": 0.13404,
    "h": 284.6
  },
  "luminance": 0.01987
}

Semantic roles & 50–950 ramp

primary
#281568
secondary
#889F3A
accent
#E93EC2
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #281568

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

Preview Lab → · Contrast checker → · Palette generator →

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