#291782#291782

#291782 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.165 H 279.1°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#291782
RGBrgb(41, 23, 130)
HSLhsl(250, 70%, 30%)
HSVhsv(250, 82%, 51%)
CMYKcmyk(68.5%, 82.3%, 0%, 49%)
CIE-LABlab(18.78, 40.49, -56.24)
CIE-LCHlch(18.78, 69.30, 305.75°)
OKLaboklab(31.8% 0.0261 -0.1624)
OKLCHoklch(31.8% 0.165 279.1)
XYZxyz(5.2488, 2.6955, 21.3584)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291782 #708217
analogous
#173B82 #291782 #5E1782
triadic
#291782 #822917 #178229
tetradic
#291782 #82173B #708217 #17825E
square
#291782 #82173B #708217 #17825E
split-complementary
#291782 #825E17 #3B8217
monochromatic
#08051A #190E4E #291782 #3920B6 #5338DC

Accessibility & contrast

On white

13.64
#291782 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#291782 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291782
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291782#FFFFFF#000000##FFFFFF
##2917821.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003285
Deuteranopia (green-blind)
#002980
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #291782;
/* rgb */ color: rgb(41, 23, 130);
/* oklch */ color: oklch(31.8% 0.165 279.1);
Tailwind
colors: {
  custom: {
    50: '#7158a7',
    500: '#291782',
    950: '#000000',
  },
}
SCSS
$custom: #291782;
$custom-light: #7158a7;
$custom-dark: #000000;
JSON
{
  "hex": "#291782",
  "rgb": {
    "r": 41,
    "g": 23,
    "b": 130
  },
  "hsl": {
    "h": 250.093,
    "s": 69.935,
    "l": 30
  },
  "oklch": {
    "l": 0.31795,
    "c": 0.1645,
    "h": 279.1
  },
  "luminance": 0.02696
}

Semantic roles & 50–950 ramp

primary
#291782
secondary
#A2B63E
accent
#ED3BCF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #291782

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

Preview Lab → · Contrast checker → · Palette generator →

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