#3A215E#3A215E

#3A215E is a dark, moderate violet. Relative luminance 0.028; OKLCH L 31.5% C 0.105 H 299.2°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#3A215E
RGBrgb(58, 33, 94)
HSLhsl(265, 48%, 25%)
HSVhsv(265, 65%, 37%)
CMYKcmyk(38.3%, 64.9%, 0%, 63.1%)
CIE-LABlab(19.21, 26.54, -32.17)
CIE-LCHlch(19.21, 41.70, 309.52°)
OKLaboklab(31.48% 0.051 -0.0913)
OKLCHoklch(31.48% 0.105 299.2)
XYZxyz(4.3087, 2.7954, 10.9001)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A215E #455E21
analogous
#21275E #3A215E #58215E
triadic
#3A215E #5E3A21 #215E3A
tetradic
#3A215E #5E2127 #455E21 #215E58
square
#3A215E #5E2127 #455E21 #215E58
split-complementary
#3A215E #5E5821 #275E21
monochromatic
#0E0817 #1E1131 #3A215E #56318B #7241B9

Accessibility & contrast

On white

13.47
#3A215E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#3A215E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A215E
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A215E#FFFFFF#000000##FFFFFF
##3A215E1.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F60
Deuteranopia (green-blind)
#0A2E5D
Tritanopia (blue-blind)
#322E3C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3a215e;
/* rgb */ color: rgb(58, 33, 94);
/* oklch */ color: oklch(31.5% 0.105 299.2);
Tailwind
colors: {
  custom: {
    50: '#735d8c',
    500: '#3a215e',
    950: '#000000',
  },
}
SCSS
$custom: #3a215e;
$custom-light: #735d8c;
$custom-dark: #000000;
JSON
{
  "hex": "#3a215e",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 94
  },
  "hsl": {
    "h": 264.59,
    "s": 48.031,
    "l": 24.902
  },
  "oklch": {
    "l": 0.31483,
    "c": 0.10463,
    "h": 299.2
  },
  "luminance": 0.02795
}

Semantic roles & 50–950 ramp

primary
#3A215E
secondary
#749249
accent
#D850A0
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #3A215E

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

Preview Lab → · Contrast checker → · Palette generator →

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