#281168#281168

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

Color values

HEX#281168
RGBrgb(40, 17, 104)
HSLhsl(256, 72%, 24%)
HSVhsv(256, 84%, 41%)
CMYKcmyk(61.5%, 83.7%, 0%, 59.2%)
CIE-LABlab(14.69, 35.23, -46.23)
CIE-LCHlch(14.69, 58.13, 307.31°)
OKLaboklab(28.05% 0.0366 -0.1332)
OKLCHoklch(28.05% 0.138 285.4)
XYZxyz(3.5735, 1.8513, 13.2630)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281168 #516811
analogous
#112568 #281168 #531168
triadic
#281168 #682811 #116828
tetradic
#281168 #681125 #516811 #116853
square
#281168 #681125 #516811 #116853
split-complementary
#281168 #685311 #256811
monochromatic
#0A041A #140833 #281168 #3C1A9D #5022D1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##281168#FFFFFF#000000##FFFFFF
##2811681.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)
#00276A
Deuteranopia (green-blind)
#002266
Tritanopia (blue-blind)
#052B3D
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #281168;
/* rgb */ color: rgb(40, 17, 104);
/* oklch */ color: oklch(28.0% 0.138 285.4);
Tailwind
colors: {
  custom: {
    50: '#6b5394',
    500: '#281168',
    950: '#000000',
  },
}
SCSS
$custom: #281168;
$custom-light: #6b5394;
$custom-dark: #000000;
JSON
{
  "hex": "#281168",
  "rgb": {
    "r": 40,
    "g": 17,
    "b": 104
  },
  "hsl": {
    "h": 255.862,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28048,
    "c": 0.13814,
    "h": 285.4
  },
  "luminance": 0.01851
}

Semantic roles & 50–950 ramp

primary
#281168
secondary
#84A035
accent
#EF39BF
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020D
muted
#7A787E

Preview Lab

Preview with #281168

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

Preview Lab → · Contrast checker → · Palette generator →

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