#291783#291783

#291783 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.166 H 279.0°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#291783
RGBrgb(41, 23, 131)
HSLhsl(250, 70%, 30%)
HSVhsv(250, 82%, 51%)
CMYKcmyk(68.7%, 82.4%, 0%, 48.6%)
CIE-LABlab(18.90, 40.80, -56.68)
CIE-LCHlch(18.90, 69.84, 305.75°)
OKLaboklab(31.91% 0.0258 -0.1637)
OKLCHoklch(31.91% 0.166 279)
XYZxyz(5.3163, 2.7225, 21.7137)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291783 #718317
analogous
#173B83 #291783 #5F1783
triadic
#291783 #832917 #178329
tetradic
#291783 #83173B #718317 #17835F
square
#291783 #83173B #718317 #17835F
split-complementary
#291783 #835F17 #3B8317
monochromatic
#08051B #190E4F #291783 #3920B7 #5438DC

Accessibility & contrast

On white

13.60
#291783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291783
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291783#FFFFFF#000000##FFFFFF
##2917831.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003286
Deuteranopia (green-blind)
#002A81
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #291783;
/* rgb */ color: rgb(41, 23, 131);
/* oklch */ color: oklch(31.9% 0.166 279.0);
Tailwind
colors: {
  custom: {
    50: '#7158a8',
    500: '#291783',
    950: '#000000',
  },
}
SCSS
$custom: #291783;
$custom-light: #7158a8;
$custom-dark: #000000;
JSON
{
  "hex": "#291783",
  "rgb": {
    "r": 41,
    "g": 23,
    "b": 131
  },
  "hsl": {
    "h": 250,
    "s": 70.13,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31909,
    "c": 0.16573,
    "h": 279
  },
  "luminance": 0.02723
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #291783

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

Preview Lab → · Contrast checker → · Palette generator →

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