#281181#281181

#281181 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.9% C 0.168 H 279.5°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#281181
RGBrgb(40, 17, 129)
HSLhsl(252, 77%, 29%)
HSVhsv(252, 87%, 51%)
CMYKcmyk(69%, 86.8%, 0%, 49.4%)
CIE-LABlab(17.63, 42.85, -57.52)
CIE-LCHlch(17.63, 71.72, 306.69°)
OKLaboklab(30.94% 0.0277 -0.166)
OKLCHoklch(30.94% 0.168 279.5)
XYZxyz(5.0367, 2.4366, 20.9695)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281181 #6A8111
analogous
#113281 #281181 #601181
triadic
#281181 #812811 #118128
tetradic
#281181 #811132 #6A8111 #118160
square
#281181 #811132 #6A8111 #118160
split-complementary
#281181 #816011 #328111
monochromatic
#08041B #170A4B #281181 #3918B7 #502AE3

Accessibility & contrast

On white

14.12
#281181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#281181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281181
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281181#FFFFFF#000000##FFFFFF
##2811811.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F84
Deuteranopia (green-blind)
#00277F
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #281181;
/* rgb */ color: rgb(40, 17, 129);
/* oklch */ color: oklch(30.9% 0.168 279.5);
Tailwind
colors: {
  custom: {
    50: '#7155a7',
    500: '#281181',
    950: '#000000',
  },
}
SCSS
$custom: #281181;
$custom-light: #7155a7;
$custom-dark: #000000;
JSON
{
  "hex": "#281181",
  "rgb": {
    "r": 40,
    "g": 17,
    "b": 129
  },
  "hsl": {
    "h": 252.321,
    "s": 76.712,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30943,
    "c": 0.16835,
    "h": 279.5
  },
  "luminance": 0.02437
}

Semantic roles & 50–950 ramp

primary
#281181
secondary
#9DB737
accent
#F335CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #281181

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

Preview Lab → · Contrast checker → · Palette generator →

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