#291362#291362

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

Color values

HEX#291362
RGBrgb(41, 19, 98)
HSLhsl(257, 68%, 23%)
HSVhsv(257, 81%, 38%)
CMYKcmyk(58.2%, 80.6%, 0%, 61.6%)
CIE-LABlab(14.51, 32.46, -42.56)
CIE-LCHlch(14.51, 53.53, 307.34°)
OKLaboklab(27.75% 0.0387 -0.1224)
OKLCHoklch(27.75% 0.128 287.6)
XYZxyz(3.3513, 1.8188, 11.7274)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291362 #4C6213
analogous
#132462 #291362 #501362
triadic
#291362 #622913 #136229
tetradic
#291362 #621324 #4C6213 #136250
square
#291362 #621324 #4C6213 #136250
split-complementary
#291362 #625013 #246213
monochromatic
#0B051A #14092F #291362 #3E1D95 #5427C9

Accessibility & contrast

On white

15.40
#291362 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291362
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291362#FFFFFF#000000##FFFFFF
##2913621.0015.401.3615.40
#FFFFFF15.401.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002664
Deuteranopia (green-blind)
#002261
Tritanopia (blue-blind)
#11293A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #291362;
/* rgb */ color: rgb(41, 19, 98);
/* oklch */ color: oklch(27.8% 0.128 287.6);
Tailwind
colors: {
  custom: {
    50: '#6a538f',
    500: '#291362',
    950: '#000000',
  },
}
SCSS
$custom: #291362;
$custom-light: #6a538f;
$custom-dark: #000000;
JSON
{
  "hex": "#291362",
  "rgb": {
    "r": 41,
    "g": 19,
    "b": 98
  },
  "hsl": {
    "h": 256.709,
    "s": 67.521,
    "l": 22.941
  },
  "oklch": {
    "l": 0.27753,
    "c": 0.12843,
    "h": 287.6
  },
  "luminance": 0.01819
}

Semantic roles & 50–950 ramp

primary
#291362
secondary
#7E9A37
accent
#EA3DBA
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #291362

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

Preview Lab → · Contrast checker → · Palette generator →

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