#29158A#29158A

#29158A is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.5% C 0.176 H 278.0°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#29158A
RGBrgb(41, 21, 138)
HSLhsl(250, 74%, 31%)
HSVhsv(250, 85%, 54%)
CMYKcmyk(70.3%, 84.8%, 0%, 45.9%)
CIE-LABlab(19.40, 43.90, -60.25)
CIE-LCHlch(19.40, 74.55, 306.08°)
OKLaboklab(32.5% 0.0245 -0.174)
OKLCHoklch(32.5% 0.176 278)
XYZxyz(5.7686, 2.8422, 24.2844)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#29158A #768A15
analogous
#153B8A #29158A #63158A
triadic
#29158A #8A2915 #158A29
tetradic
#29158A #8A153B #768A15 #158A63
square
#29158A #8A153B #768A15 #158A63
split-complementary
#29158A #8A6315 #3B8A15
monochromatic
#090520 #190D55 #29158A #391DBF #5539E1

Accessibility & contrast

On white

13.39
#29158A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#29158A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #29158A
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##29158A#FFFFFF#000000##FFFFFF
##29158A1.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338D
Deuteranopia (green-blind)
#002A88
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #29158a;
/* rgb */ color: rgb(41, 21, 138);
/* oklch */ color: oklch(32.5% 0.176 278.0);
Tailwind
colors: {
  custom: {
    50: '#7357ad',
    500: '#29158a',
    950: '#000000',
  },
}
SCSS
$custom: #29158a;
$custom-light: #7357ad;
$custom-dark: #000000;
JSON
{
  "hex": "#29158a",
  "rgb": {
    "r": 41,
    "g": 21,
    "b": 138
  },
  "hsl": {
    "h": 250.256,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32499,
    "c": 0.17576,
    "h": 278
  },
  "luminance": 0.02843
}

Semantic roles & 50–950 ramp

primary
#29158A
secondary
#A8BE3D
accent
#F038D1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #29158A

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

Preview Lab → · Contrast checker → · Palette generator →

#29158A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva