#291583#291583

#291583 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.7% C 0.167 H 279.2°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#291583
RGBrgb(41, 21, 131)
HSLhsl(251, 72%, 30%)
HSVhsv(251, 84%, 51%)
CMYKcmyk(68.7%, 84%, 0%, 48.6%)
CIE-LABlab(18.57, 41.76, -57.23)
CIE-LCHlch(18.57, 70.85, 306.12°)
OKLaboklab(31.68% 0.0268 -0.1652)
OKLCHoklch(31.68% 0.167 279.2)
XYZxyz(5.2780, 2.6460, 21.7009)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291583 #6F8315
analogous
#153883 #291583 #601583
triadic
#291583 #832915 #158329
tetradic
#291583 #831538 #6F8315 #158360
square
#291583 #831538 #6F8315 #158360
split-complementary
#291583 #836015 #388315
monochromatic
#08041A #180D4E #291583 #3A1DB8 #5334DE

Accessibility & contrast

On white

13.73
#291583 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#291583 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291583
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291583#FFFFFF#000000##FFFFFF
##2915831.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003186
Deuteranopia (green-blind)
#002981
Tritanopia (blue-blind)
#00374D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #291583;
/* rgb */ color: rgb(41, 21, 131);
/* oklch */ color: oklch(31.7% 0.167 279.2);
Tailwind
colors: {
  custom: {
    50: '#7157a8',
    500: '#291583',
    950: '#000000',
  },
}
SCSS
$custom: #291583;
$custom-light: #7157a8;
$custom-dark: #000000;
JSON
{
  "hex": "#291583",
  "rgb": {
    "r": 41,
    "g": 21,
    "b": 131
  },
  "hsl": {
    "h": 250.909,
    "s": 72.368,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31681,
    "c": 0.16741,
    "h": 279.2
  },
  "luminance": 0.02646
}

Semantic roles & 50–950 ramp

primary
#291583
secondary
#A1B83C
accent
#EF39CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #291583

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

Preview Lab → · Contrast checker → · Palette generator →

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