#29157F#29157F

#29157F is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.2% C 0.163 H 280.0°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#29157F
RGBrgb(41, 21, 127)
HSLhsl(251, 72%, 29%)
HSVhsv(251, 83%, 50%)
CMYKcmyk(67.7%, 83.5%, 0%, 50.2%)
CIE-LABlab(18.10, 40.53, -55.47)
CIE-LCHlch(18.10, 68.70, 306.16°)
OKLaboklab(31.22% 0.0281 -0.1601)
OKLCHoklch(31.22% 0.163 280)
XYZxyz(5.0122, 2.5396, 20.3006)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#29157F #6B7F15
analogous
#15367F #29157F #5E157F
triadic
#29157F #7F2915 #157F29
tetradic
#29157F #7F1536 #6B7F15 #157F5E
square
#29157F #7F1536 #6B7F15 #157F5E
split-complementary
#29157F #7F5E15 #367F15
monochromatic
#08041A #180C4A #29157F #3A1EB4 #5231DD

Accessibility & contrast

On white

13.93
#29157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#29157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #29157F
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##29157F#FFFFFF#000000##FFFFFF
##29157F1.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00287D
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #29157f;
/* rgb */ color: rgb(41, 21, 127);
/* oklch */ color: oklch(31.2% 0.163 280.0);
Tailwind
colors: {
  custom: {
    50: '#7057a5',
    500: '#29157f',
    950: '#000000',
  },
}
SCSS
$custom: #29157f;
$custom-light: #7057a5;
$custom-dark: #000000;
JSON
{
  "hex": "#29157f",
  "rgb": {
    "r": 41,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 251.321,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31218,
    "c": 0.16259,
    "h": 280
  },
  "luminance": 0.0254
}

Semantic roles & 50–950 ramp

primary
#29157F
secondary
#9DB43C
accent
#EE39CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #29157F

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

Preview Lab → · Contrast checker → · Palette generator →

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