#291268#291268

#291268 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.3% C 0.137 H 285.9°. Best body text is #FFFFFF at 15.21:1 contrast (WCAG AA passes).

Color values

HEX#291268
RGBrgb(41, 18, 104)
HSLhsl(256, 70%, 24%)
HSVhsv(256, 83%, 41%)
CMYKcmyk(60.6%, 82.7%, 0%, 59.2%)
CIE-LABlab(14.97, 34.86, -45.76)
CIE-LCHlch(14.97, 57.53, 307.30°)
OKLaboklab(28.27% 0.0376 -0.1318)
OKLCHoklch(28.27% 0.137 285.9)
XYZxyz(3.6287, 1.9033, 13.2702)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291268 #516812
analogous
#122668 #291268 #541268
triadic
#291268 #682912 #126829
tetradic
#291268 #681226 #516812 #126854
square
#291268 #681226 #516812 #126854
split-complementary
#291268 #685412 #266812
monochromatic
#0A051A #140934 #291268 #3E1B9C #5224D0

Accessibility & contrast

On white

15.21
#291268 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291268
15.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291268#FFFFFF#000000##FFFFFF
##2912681.0015.211.3815.21
#FFFFFF15.211.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286A
Deuteranopia (green-blind)
#002366
Tritanopia (blue-blind)
#092B3D
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #291268;
/* rgb */ color: rgb(41, 18, 104);
/* oklch */ color: oklch(28.3% 0.137 285.9);
Tailwind
colors: {
  custom: {
    50: '#6c5394',
    500: '#291268',
    950: '#000000',
  },
}
SCSS
$custom: #291268;
$custom-light: #6c5394;
$custom-dark: #000000;
JSON
{
  "hex": "#291268",
  "rgb": {
    "r": 41,
    "g": 18,
    "b": 104
  },
  "hsl": {
    "h": 256.047,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28273,
    "c": 0.13706,
    "h": 285.9
  },
  "luminance": 0.01904
}

Semantic roles & 50–950 ramp

primary
#291268
secondary
#83A036
accent
#ED3BBD
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #291268

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

Preview Lab → · Contrast checker → · Palette generator →

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