#291968#291968

#291968 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.2% C 0.129 H 284.3°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#291968
RGBrgb(41, 25, 104)
HSLhsl(252, 61%, 25%)
HSVhsv(252, 76%, 41%)
CMYKcmyk(60.6%, 76%, 0%, 59.2%)
CIE-LABlab(16.33, 30.99, -43.52)
CIE-LCHlch(16.33, 53.43, 305.46°)
OKLaboklab(29.23% 0.032 -0.1253)
OKLCHoklch(29.23% 0.129 284.3)
XYZxyz(3.7600, 2.1659, 13.3140)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291968 #586819
analogous
#193068 #291968 #501968
triadic
#291968 #682919 #196829
tetradic
#291968 #681930 #586819 #196850
square
#291968 #681930 #586819 #196850
split-complementary
#291968 #685019 #306819
monochromatic
#0A0619 #160D37 #291968 #3C2599 #5031CB

Accessibility & contrast

On white

14.65
#291968 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#291968 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291968
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291968#FFFFFF#000000##FFFFFF
##2919681.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6A
Deuteranopia (green-blind)
#002667
Tritanopia (blue-blind)
#082E3E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #291968;
/* rgb */ color: rgb(41, 25, 104);
/* oklch */ color: oklch(29.2% 0.129 284.3);
Tailwind
colors: {
  custom: {
    50: '#6b5794',
    500: '#291968',
    950: '#000000',
  },
}
SCSS
$custom: #291968;
$custom-light: #6b5794;
$custom-dark: #000000;
JSON
{
  "hex": "#291968",
  "rgb": {
    "r": 41,
    "g": 25,
    "b": 104
  },
  "hsl": {
    "h": 252.152,
    "s": 61.24,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29232,
    "c": 0.12932,
    "h": 284.3
  },
  "luminance": 0.02166
}

Semantic roles & 50–950 ramp

primary
#291968
secondary
#8B9E3F
accent
#E443C4
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #291968

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

Preview Lab → · Contrast checker → · Palette generator →

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