#291966#291966

#291966 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.127 H 284.8°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#291966
RGBrgb(41, 25, 102)
HSLhsl(252, 61%, 25%)
HSVhsv(252, 75%, 40%)
CMYKcmyk(59.8%, 75.5%, 0%, 60%)
CIE-LABlab(16.13, 30.33, -42.53)
CIE-LCHlch(16.13, 52.24, 305.49°)
OKLaboklab(29.03% 0.0325 -0.1224)
OKLCHoklch(29.03% 0.127 284.8)
XYZxyz(3.6596, 2.1258, 12.7853)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291966 #566619
analogous
#192F66 #291966 #501966
triadic
#291966 #662919 #196629
tetradic
#291966 #66192F #566619 #196650
square
#291966 #66192F #566619 #196650
split-complementary
#291966 #665019 #2F6619
monochromatic
#0A0619 #150D35 #291966 #3D2597 #5131C8

Accessibility & contrast

On white

14.73
#291966 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291966
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291966#FFFFFF#000000##FFFFFF
##2919661.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A68
Deuteranopia (green-blind)
#002665
Tritanopia (blue-blind)
#0B2E3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #291966;
/* rgb */ color: rgb(41, 25, 102);
/* oklch */ color: oklch(29.0% 0.127 284.8);
Tailwind
colors: {
  custom: {
    50: '#6b5792',
    500: '#291966',
    950: '#000000',
  },
}
SCSS
$custom: #291966;
$custom-light: #6b5792;
$custom-dark: #000000;
JSON
{
  "hex": "#291966",
  "rgb": {
    "r": 41,
    "g": 25,
    "b": 102
  },
  "hsl": {
    "h": 252.468,
    "s": 60.63,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29028,
    "c": 0.12665,
    "h": 284.8
  },
  "luminance": 0.02126
}

Semantic roles & 50–950 ramp

primary
#291966
secondary
#899C3F
accent
#E444C3
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #291966

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

Preview Lab → · Contrast checker → · Palette generator →

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