#291267#291267

#291267 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.2% C 0.136 H 286.2°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#291267
RGBrgb(41, 18, 103)
HSLhsl(256, 70%, 24%)
HSVhsv(256, 83%, 40%)
CMYKcmyk(60.2%, 82.5%, 0%, 59.6%)
CIE-LABlab(14.86, 34.55, -45.28)
CIE-LCHlch(14.86, 56.96, 307.34°)
OKLaboklab(28.16% 0.0379 -0.1304)
OKLCHoklch(28.16% 0.136 286.2)
XYZxyz(3.5782, 1.8831, 13.0043)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291267 #506712
analogous
#122567 #291267 #531267
triadic
#291267 #672912 #126729
tetradic
#291267 #671225 #506712 #126753
square
#291267 #671225 #506712 #126753
split-complementary
#291267 #675312 #256712
monochromatic
#0A051A #140933 #291267 #3E1B9B #5224CF

Accessibility & contrast

On white

15.25
#291267 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#291267 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291267
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291267#FFFFFF#000000##FFFFFF
##2912671.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002869
Deuteranopia (green-blind)
#002365
Tritanopia (blue-blind)
#0A2B3C
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #291267;
/* rgb */ color: rgb(41, 18, 103);
/* oklch */ color: oklch(28.2% 0.136 286.2);
Tailwind
colors: {
  custom: {
    50: '#6b5393',
    500: '#291267',
    950: '#000000',
  },
}
SCSS
$custom: #291267;
$custom-light: #6b5393;
$custom-dark: #000000;
JSON
{
  "hex": "#291267",
  "rgb": {
    "r": 41,
    "g": 18,
    "b": 103
  },
  "hsl": {
    "h": 256.235,
    "s": 70.248,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28163,
    "c": 0.13582,
    "h": 286.2
  },
  "luminance": 0.01883
}

Semantic roles & 50–950 ramp

primary
#291267
secondary
#829F36
accent
#ED3BBD
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #291267

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

Preview Lab → · Contrast checker → · Palette generator →

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