#29157B#29157B

#29157B is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.8% C 0.158 H 280.8°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#29157B
RGBrgb(41, 21, 123)
HSLhsl(252, 71%, 28%)
HSVhsv(252, 83%, 48%)
CMYKcmyk(66.7%, 82.9%, 0%, 51.8%)
CIE-LABlab(17.63, 39.29, -53.69)
CIE-LCHlch(17.63, 66.52, 306.20°)
OKLaboklab(30.76% 0.0294 -0.1549)
OKLCHoklch(30.76% 0.158 280.8)
XYZxyz(4.7566, 2.4374, 18.9549)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#29157B #677B15
analogous
#15347B #29157B #5C157B
triadic
#29157B #7B2915 #157B29
tetradic
#29157B #7B1534 #677B15 #157B5C
square
#29157B #7B1534 #677B15 #157B5C
split-complementary
#29157B #7B5C15 #347B15
monochromatic
#09041A #180C47 #29157B #3A1EAF #512FDB

Accessibility & contrast

On white

14.12
#29157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#29157B on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##29157B#FFFFFF#000000##FFFFFF
##29157B1.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)
#002F7E
Deuteranopia (green-blind)
#002779
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #29157b;
/* rgb */ color: rgb(41, 21, 123);
/* oklch */ color: oklch(30.8% 0.158 280.8);
Tailwind
colors: {
  custom: {
    50: '#6f56a2',
    500: '#29157b',
    950: '#000000',
  },
}
SCSS
$custom: #29157b;
$custom-light: #6f56a2;
$custom-dark: #000000;
JSON
{
  "hex": "#29157b",
  "rgb": {
    "r": 41,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 251.765,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30761,
    "c": 0.15772,
    "h": 280.8
  },
  "luminance": 0.02438
}

Semantic roles & 50–950 ramp

primary
#29157B
secondary
#99B03B
accent
#EE3ACA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #29157B

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

Preview Lab → · Contrast checker → · Palette generator →

#29157B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva