#291279#291279

#291279 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.158 H 281.6°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#291279
RGBrgb(41, 18, 121)
HSLhsl(253, 74%, 27%)
HSVhsv(253, 85%, 47%)
CMYKcmyk(66.1%, 85.1%, 0%, 52.5%)
CIE-LABlab(16.91, 40.09, -53.60)
CIE-LCHlch(16.91, 66.93, 306.80°)
OKLaboklab(30.19% 0.0317 -0.1546)
OKLCHoklch(30.19% 0.158 281.6)
XYZxyz(4.5809, 2.2842, 18.2849)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291279 #627912
analogous
#122F79 #291279 #5D1279
triadic
#291279 #792912 #127929
tetradic
#291279 #79122F #627912 #12795D
square
#291279 #79122F #627912 #12795D
split-complementary
#291279 #795D12 #2F7912
monochromatic
#09041B #170A44 #291279 #3B1AAE #5027DF

Accessibility & contrast

On white

14.41
#291279 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#291279 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291279
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291279#FFFFFF#000000##FFFFFF
##2912791.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7C
Deuteranopia (green-blind)
#002677
Tritanopia (blue-blind)
#003247
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #291279;
/* rgb */ color: rgb(41, 18, 121);
/* oklch */ color: oklch(30.2% 0.158 281.6);
Tailwind
colors: {
  custom: {
    50: '#6f55a1',
    500: '#291279',
    950: '#000000',
  },
}
SCSS
$custom: #291279;
$custom-light: #6f55a1;
$custom-dark: #000000;
JSON
{
  "hex": "#291279",
  "rgb": {
    "r": 41,
    "g": 18,
    "b": 121
  },
  "hsl": {
    "h": 253.398,
    "s": 74.101,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30194,
    "c": 0.15786,
    "h": 281.6
  },
  "luminance": 0.02285
}

Semantic roles & 50–950 ramp

primary
#291279
secondary
#95AF38
accent
#F137C7
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #291279

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

Preview Lab → · Contrast checker → · Palette generator →

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