#281166#281166

#281166 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.8% C 0.136 H 286.0°. Best body text is #FFFFFF at 15.42:1 contrast (WCAG AA passes).

Color values

HEX#281166
RGBrgb(40, 17, 102)
HSLhsl(256, 71%, 23%)
HSVhsv(256, 83%, 40%)
CMYKcmyk(60.8%, 83.3%, 0%, 60%)
CIE-LABlab(14.46, 34.61, -45.28)
CIE-LCHlch(14.46, 57.00, 307.39°)
OKLaboklab(27.83% 0.0373 -0.1304)
OKLCHoklch(27.83% 0.136 286)
XYZxyz(3.4731, 1.8111, 12.7344)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281166 #4F6611
analogous
#112466 #281166 #521166
triadic
#281166 #662811 #116628
tetradic
#281166 #661124 #4F6611 #116652
square
#281166 #661124 #4F6611 #116652
split-complementary
#281166 #665211 #246611
monochromatic
#0A041A #130832 #281166 #3D1A9A #5122CF

Accessibility & contrast

On white

15.42
#281166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#281166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281166
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281166#FFFFFF#000000##FFFFFF
##2811661.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002768
Deuteranopia (green-blind)
#002264
Tritanopia (blue-blind)
#082A3B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #281166;
/* rgb */ color: rgb(40, 17, 102);
/* oklch */ color: oklch(27.8% 0.136 286.0);
Tailwind
colors: {
  custom: {
    50: '#6b5393',
    500: '#281166',
    950: '#000000',
  },
}
SCSS
$custom: #281166;
$custom-light: #6b5393;
$custom-dark: #000000;
JSON
{
  "hex": "#281166",
  "rgb": {
    "r": 40,
    "g": 17,
    "b": 102
  },
  "hsl": {
    "h": 256.235,
    "s": 71.429,
    "l": 23.333
  },
  "oklch": {
    "l": 0.27826,
    "c": 0.13566,
    "h": 286
  },
  "luminance": 0.01811
}

Semantic roles & 50–950 ramp

primary
#281166
secondary
#829E35
accent
#EE3ABD
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #281166

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

Preview Lab → · Contrast checker → · Palette generator →

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