#291275#291275

#291275 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.153 H 282.5°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#291275
RGBrgb(41, 18, 117)
HSLhsl(254, 73%, 26%)
HSVhsv(254, 85%, 46%)
CMYKcmyk(65%, 84.6%, 0%, 54.1%)
CIE-LABlab(16.44, 38.87, -51.80)
CIE-LCHlch(16.44, 64.76, 306.89°)
OKLaboklab(29.73% 0.0331 -0.1494)
OKLCHoklch(29.73% 0.153 282.5)
XYZxyz(4.3406, 2.1881, 17.0198)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291275 #5E7512
analogous
#122D75 #291275 #5B1275
triadic
#291275 #752912 #127529
tetradic
#291275 #75122D #5E7512 #12755B
square
#291275 #75122D #5E7512 #12755B
split-complementary
#291275 #755B12 #2D7512
monochromatic
#09041B #160A40 #291275 #3C1AAA #4F24DD

Accessibility & contrast

On white

14.61
#291275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#291275 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291275
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291275#FFFFFF#000000##FFFFFF
##2912751.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C78
Deuteranopia (green-blind)
#002573
Tritanopia (blue-blind)
#003144
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #291275;
/* rgb */ color: rgb(41, 18, 117);
/* oklch */ color: oklch(29.7% 0.153 282.5);
Tailwind
colors: {
  custom: {
    50: '#6e549e',
    500: '#291275',
    950: '#000000',
  },
}
SCSS
$custom: #291275;
$custom-light: #6e549e;
$custom-dark: #000000;
JSON
{
  "hex": "#291275",
  "rgb": {
    "r": 41,
    "g": 18,
    "b": 117
  },
  "hsl": {
    "h": 253.939,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29733,
    "c": 0.15303,
    "h": 282.5
  },
  "luminance": 0.02188
}

Semantic roles & 50–950 ramp

primary
#291275
secondary
#91AC37
accent
#F038C5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #291275

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

Preview Lab → · Contrast checker → · Palette generator →

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