#291270#291270

#291270 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.147 H 283.7°. Best body text is #FFFFFF at 14.84:1 contrast (WCAG AA passes).

Color values

HEX#291270
RGBrgb(41, 18, 112)
HSLhsl(255, 72%, 25%)
HSVhsv(255, 84%, 44%)
CMYKcmyk(63.4%, 83.9%, 0%, 56.1%)
CIE-LABlab(15.87, 37.34, -49.51)
CIE-LCHlch(15.87, 62.01, 307.02°)
OKLaboklab(29.16% 0.0349 -0.1427)
OKLCHoklch(29.16% 0.147 283.7)
XYZxyz(4.0545, 2.0736, 15.5127)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291270 #597012
analogous
#122A70 #291270 #581270
triadic
#291270 #702912 #127029
tetradic
#291270 #70122A #597012 #127058
square
#291270 #70122A #597012 #127058
split-complementary
#291270 #705812 #2A7012
monochromatic
#0A041A #160A3B #291270 #3C1AA5 #5023D9

Accessibility & contrast

On white

14.84
#291270 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#291270 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291270
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291270#FFFFFF#000000##FFFFFF
##2912701.0014.841.4114.84
#FFFFFF14.841.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A73
Deuteranopia (green-blind)
#00246E
Tritanopia (blue-blind)
#002E41
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #291270;
/* rgb */ color: rgb(41, 18, 112);
/* oklch */ color: oklch(29.2% 0.147 283.7);
Tailwind
colors: {
  custom: {
    50: '#6d549a',
    500: '#291270',
    950: '#000000',
  },
}
SCSS
$custom: #291270;
$custom-light: #6d549a;
$custom-dark: #000000;
JSON
{
  "hex": "#291270",
  "rgb": {
    "r": 41,
    "g": 18,
    "b": 112
  },
  "hsl": {
    "h": 254.681,
    "s": 72.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29164,
    "c": 0.14694,
    "h": 283.7
  },
  "luminance": 0.02074
}

Semantic roles & 50–950 ramp

primary
#291270
secondary
#8CA737
accent
#EF39C2
background
#F7F5F9
surface
#EDE8F2
border
#C8C4CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #291270

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

Preview Lab → · Contrast checker → · Palette generator →

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