#291381#291381

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

Color values

HEX#291381
RGBrgb(41, 19, 129)
HSLhsl(252, 74%, 29%)
HSVhsv(252, 85%, 51%)
CMYKcmyk(68.2%, 85.3%, 0%, 49.4%)
CIE-LABlab(18.02, 42.07, -56.87)
CIE-LCHlch(18.02, 70.74, 306.49°)
OKLaboklab(31.23% 0.0284 -0.1642)
OKLCHoklch(31.23% 0.167 279.8)
XYZxyz(5.1085, 2.5217, 20.9822)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291381 #6B8113
analogous
#133481 #291381 #601381
triadic
#291381 #812913 #138129
tetradic
#291381 #811334 #6B8113 #138160
square
#291381 #811334 #6B8113 #138160
split-complementary
#291381 #816013 #348113
monochromatic
#08041B #180B4C #291381 #3A1BB6 #522EE0

Accessibility & contrast

On white

13.96
#291381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291381
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291381#FFFFFF#000000##FFFFFF
##2913811.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #291381;
/* rgb */ color: rgb(41, 19, 129);
/* oklch */ color: oklch(31.2% 0.167 279.8);
Tailwind
colors: {
  custom: {
    50: '#7156a7',
    500: '#291381',
    950: '#000000',
  },
}
SCSS
$custom: #291381;
$custom-light: #7156a7;
$custom-dark: #000000;
JSON
{
  "hex": "#291381",
  "rgb": {
    "r": 41,
    "g": 19,
    "b": 129
  },
  "hsl": {
    "h": 252,
    "s": 74.324,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31232,
    "c": 0.16662,
    "h": 279.8
  },
  "luminance": 0.02522
}

Semantic roles & 50–950 ramp

primary
#291381
secondary
#9DB63A
accent
#F137CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #291381

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

Preview Lab → · Contrast checker → · Palette generator →

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