#290540#290540

#290540 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.5% C 0.104 H 307.5°. Best body text is #FFFFFF at 17.65:1 contrast (WCAG AA passes).

Color values

HEX#290540
RGBrgb(41, 5, 64)
HSLhsl(277, 86%, 14%)
HSVhsv(277, 92%, 25%)
CMYKcmyk(35.9%, 92.2%, 0%, 74.9%)
CIE-LABlab(8.57, 29.65, -28.94)
CIE-LCHlch(8.57, 41.43, 315.70°)
OKLaboklab(22.54% 0.0631 -0.0824)
OKLCHoklch(22.54% 0.104 307.5)
XYZxyz(1.8939, 0.9501, 4.9331)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#290540 #1C4005
analogous
#0B0540 #290540 #400539
triadic
#290540 #402905 #054029
tetradic
#290540 #400B05 #1C4005 #053940
square
#290540 #400B05 #1C4005 #053940
split-complementary
#290540 #394005 #05400B
monochromatic
#12021C #12021C #290540 #4D0979 #720EB2

Accessibility & contrast

On white

17.65
#290540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#290540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #290540
17.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##290540#FFFFFF#000000##FFFFFF
##2905401.0017.651.1917.65
#FFFFFF17.651.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001742
Deuteranopia (green-blind)
#00193F
Tritanopia (blue-blind)
#251423
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #290540;
/* rgb */ color: rgb(41, 5, 64);
/* oklch */ color: oklch(22.5% 0.104 307.5);
Tailwind
colors: {
  custom: {
    50: '#664a75',
    500: '#290540',
    950: '#000000',
  },
}
SCSS
$custom: #290540;
$custom-light: #664a75;
$custom-dark: #000000;
JSON
{
  "hex": "#290540",
  "rgb": {
    "r": 41,
    "g": 5,
    "b": 64
  },
  "hsl": {
    "h": 276.61,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.2254,
    "c": 0.10379,
    "h": 307.5
  },
  "luminance": 0.0095
}

Semantic roles & 50–950 ramp

primary
#290540
secondary
#468120
accent
#FC2C7D
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #290540

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

Preview Lab → · Contrast checker → · Palette generator →

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