#291264#291264

#291264 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.8% C 0.132 H 287.1°. Best body text is #FFFFFF at 15.39:1 contrast (WCAG AA passes).

Color values

HEX#291264
RGBrgb(41, 18, 100)
HSLhsl(257, 69%, 23%)
HSVhsv(257, 82%, 39%)
CMYKcmyk(59%, 82%, 0%, 60.8%)
CIE-LABlab(14.53, 33.62, -43.84)
CIE-LCHlch(14.53, 55.25, 307.48°)
OKLaboklab(27.84% 0.0389 -0.1262)
OKLCHoklch(27.84% 0.132 287.1)
XYZxyz(3.4303, 1.8239, 12.2254)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291264 #4D6412
analogous
#122464 #291264 #521264
triadic
#291264 #642912 #126429
tetradic
#291264 #641224 #4D6412 #126452
square
#291264 #641224 #4D6412 #126452
split-complementary
#291264 #645212 #246412
monochromatic
#0B051A #140930 #291264 #3E1B98 #5425CC

Accessibility & contrast

On white

15.39
#291264 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#291264 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291264
15.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291264#FFFFFF#000000##FFFFFF
##2912641.0015.391.3615.39
#FFFFFF15.391.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002766
Deuteranopia (green-blind)
#002263
Tritanopia (blue-blind)
#0F2A3A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #291264;
/* rgb */ color: rgb(41, 18, 100);
/* oklch */ color: oklch(27.8% 0.132 287.1);
Tailwind
colors: {
  custom: {
    50: '#6b5391',
    500: '#291264',
    950: '#000000',
  },
}
SCSS
$custom: #291264;
$custom-light: #6b5391;
$custom-dark: #000000;
JSON
{
  "hex": "#291264",
  "rgb": {
    "r": 41,
    "g": 18,
    "b": 100
  },
  "hsl": {
    "h": 256.829,
    "s": 69.492,
    "l": 23.137
  },
  "oklch": {
    "l": 0.27837,
    "c": 0.13205,
    "h": 287.1
  },
  "luminance": 0.01824
}

Semantic roles & 50–950 ramp

primary
#291264
secondary
#7F9C36
accent
#EC3BBB
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #291264

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

Preview Lab → · Contrast checker → · Palette generator →

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