#3A2D79#3A2D79

#3A2D79 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 35.8% C 0.124 H 286.1°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#3A2D79
RGBrgb(58, 45, 121)
HSLhsl(250, 46%, 33%)
HSVhsv(250, 63%, 47%)
CMYKcmyk(52.1%, 62.8%, 0%, 52.5%)
CIE-LABlab(24.18, 27.35, -41.62)
CIE-LCHlch(24.18, 49.81, 303.31°)
OKLaboklab(35.78% 0.0345 -0.1191)
OKLCHoklch(35.78% 0.124 286.1)
XYZxyz(6.1335, 4.1565, 18.5646)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2D79 #6C792D
analogous
#2D4679 #3A2D79 #602D79
triadic
#3A2D79 #793A2D #2D793A
tetradic
#3A2D79 #792D46 #6C792D #2D7960
square
#3A2D79 #792D46 #6C792D #2D7960
split-complementary
#3A2D79 #79602D #46792D
monochromatic
#0F0C20 #251C4C #3A2D79 #4F3EA6 #6F5DC3

Accessibility & contrast

On white

11.47
#3A2D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#3A2D79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2D79
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2D79#FFFFFF#000000##FFFFFF
##3A2D791.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7B
Deuteranopia (green-blind)
#003777
Tritanopia (blue-blind)
#233F4E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3a2d79;
/* rgb */ color: rgb(58, 45, 121);
/* oklch */ color: oklch(35.8% 0.124 286.1);
Tailwind
colors: {
  custom: {
    50: '#7666a0',
    500: '#3a2d79',
    950: '#000000',
  },
}
SCSS
$custom: #3a2d79;
$custom-light: #7666a0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2d79",
  "rgb": {
    "r": 58,
    "g": 45,
    "b": 121
  },
  "hsl": {
    "h": 250.263,
    "s": 45.783,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35784,
    "c": 0.12403,
    "h": 286.1
  },
  "luminance": 0.04157
}

Semantic roles & 50–950 ramp

primary
#3A2D79
secondary
#9BA958
accent
#D552BF
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#09060F
muted
#7B7A7E

Preview Lab

Preview with #3A2D79

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

Preview Lab → · Contrast checker → · Palette generator →

#3A2D79 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva