#29157E#29157E

#29157E is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.161 H 280.2°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#29157E
RGBrgb(41, 21, 126)
HSLhsl(251, 71%, 29%)
HSVhsv(251, 83%, 49%)
CMYKcmyk(67.5%, 83.3%, 0%, 50.6%)
CIE-LABlab(17.98, 40.22, -55.02)
CIE-LCHlch(17.98, 68.16, 306.16°)
OKLaboklab(31.1% 0.0285 -0.1588)
OKLCHoklch(31.1% 0.161 280.2)
XYZxyz(4.9473, 2.5137, 19.9591)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#29157E #6A7E15
analogous
#15367E #29157E #5E157E
triadic
#29157E #7E2915 #157E29
tetradic
#29157E #7E1536 #6A7E15 #157E5E
square
#29157E #7E1536 #6A7E15 #157E5E
split-complementary
#29157E #7E5E15 #367E15
monochromatic
#09041A #180C4A #29157E #3A1EB2 #5231DD

Accessibility & contrast

On white

13.97
#29157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#29157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #29157E
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##29157E#FFFFFF#000000##FFFFFF
##29157E1.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#00287C
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #29157e;
/* rgb */ color: rgb(41, 21, 126);
/* oklch */ color: oklch(31.1% 0.161 280.2);
Tailwind
colors: {
  custom: {
    50: '#7056a5',
    500: '#29157e',
    950: '#000000',
  },
}
SCSS
$custom: #29157e;
$custom-light: #7056a5;
$custom-dark: #000000;
JSON
{
  "hex": "#29157e",
  "rgb": {
    "r": 41,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 251.429,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31103,
    "c": 0.16138,
    "h": 280.2
  },
  "luminance": 0.02514
}

Semantic roles & 50–950 ramp

primary
#29157E
secondary
#9CB33C
accent
#EE3ACC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #29157E

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

Preview Lab → · Contrast checker → · Palette generator →

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