#291273#291273

#291273 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.5% C 0.151 H 283.0°. Best body text is #FFFFFF at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#291273
RGBrgb(41, 18, 115)
HSLhsl(254, 73%, 26%)
HSVhsv(254, 84%, 45%)
CMYKcmyk(64.3%, 84.3%, 0%, 54.9%)
CIE-LABlab(16.21, 38.26, -50.89)
CIE-LCHlch(16.21, 63.67, 306.94°)
OKLaboklab(29.5% 0.0338 -0.1468)
OKLCHoklch(29.5% 0.151 283)
XYZxyz(4.2243, 2.1415, 16.4071)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291273 #5C7312
analogous
#122B73 #291273 #591273
triadic
#291273 #732912 #127329
tetradic
#291273 #73122B #5C7312 #127359
square
#291273 #73122B #5C7312 #127359
split-complementary
#291273 #735912 #2B7312
monochromatic
#09041A #160A3E #291273 #3C1AA8 #4F23DD

Accessibility & contrast

On white

14.70
#291273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#291273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291273
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291273#FFFFFF#000000##FFFFFF
##2912731.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B76
Deuteranopia (green-blind)
#002571
Tritanopia (blue-blind)
#003043
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #291273;
/* rgb */ color: rgb(41, 18, 115);
/* oklch */ color: oklch(29.5% 0.151 283.0);
Tailwind
colors: {
  custom: {
    50: '#6e549c',
    500: '#291273',
    950: '#000000',
  },
}
SCSS
$custom: #291273;
$custom-light: #6e549c;
$custom-dark: #000000;
JSON
{
  "hex": "#291273",
  "rgb": {
    "r": 41,
    "g": 18,
    "b": 115
  },
  "hsl": {
    "h": 254.227,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29504,
    "c": 0.15061,
    "h": 283
  },
  "luminance": 0.02142
}

Semantic roles & 50–950 ramp

primary
#291273
secondary
#8FAA37
accent
#F038C4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #291273

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

Preview Lab → · Contrast checker → · Palette generator →

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