#291281#291281

#291281 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.167 H 279.9°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#291281
RGBrgb(41, 18, 129)
HSLhsl(252, 76%, 29%)
HSVhsv(252, 86%, 51%)
CMYKcmyk(68.2%, 86%, 0%, 49.4%)
CIE-LABlab(17.87, 42.51, -57.12)
CIE-LCHlch(17.87, 71.20, 306.66°)
OKLaboklab(31.13% 0.0289 -0.1649)
OKLCHoklch(31.13% 0.167 279.9)
XYZxyz(5.0919, 2.4886, 20.9766)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291281 #6A8112
analogous
#123381 #291281 #611281
triadic
#291281 #812912 #128129
tetradic
#291281 #811233 #6A8112 #128161
square
#291281 #811233 #6A8112 #128161
split-complementary
#291281 #816112 #338112
monochromatic
#09041B #180B4B #291281 #3A19B7 #522CE2

Accessibility & contrast

On white

14.02
#291281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#291281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291281
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291281#FFFFFF#000000##FFFFFF
##2912811.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003084
Deuteranopia (green-blind)
#00277F
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #291281;
/* rgb */ color: rgb(41, 18, 129);
/* oklch */ color: oklch(31.1% 0.167 279.9);
Tailwind
colors: {
  custom: {
    50: '#7155a7',
    500: '#291281',
    950: '#000000',
  },
}
SCSS
$custom: #291281;
$custom-light: #7155a7;
$custom-dark: #000000;
JSON
{
  "hex": "#291281",
  "rgb": {
    "r": 41,
    "g": 18,
    "b": 129
  },
  "hsl": {
    "h": 252.432,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31129,
    "c": 0.1674,
    "h": 279.9
  },
  "luminance": 0.02489
}

Semantic roles & 50–950 ramp

primary
#291281
secondary
#9CB738
accent
#F236CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #291281

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

Preview Lab → · Contrast checker → · Palette generator →

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