#3A214B#3A214B

#3A214B is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.1% C 0.078 H 310.0°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#3A214B
RGBrgb(58, 33, 75)
HSLhsl(276, 39%, 21%)
HSVhsv(276, 56%, 29%)
CMYKcmyk(22.7%, 56%, 0%, 70.6%)
CIE-LABlab(17.90, 21.16, -21.48)
CIE-LCHlch(17.90, 30.15, 314.56°)
OKLaboklab(30.1% 0.0503 -0.0601)
OKLCHoklch(30.1% 0.078 310)
XYZxyz(3.5585, 2.4953, 6.9494)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A214B #324B21
analogous
#25214B #3A214B #4B2147
triadic
#3A214B #4B3A21 #214B3A
tetradic
#3A214B #4B2521 #324B21 #21474B
square
#3A214B #4B2521 #324B21 #21474B
split-complementary
#3A214B #474B21 #214B25
monochromatic
#100915 #190E20 #3A214B #5B3475 #7C46A0

Accessibility & contrast

On white

14.01
#3A214B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#3A214B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A214B
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A214B#FFFFFF#000000##FFFFFF
##3A214B1.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162B4C
Deuteranopia (green-blind)
#1D2C4A
Tritanopia (blue-blind)
#382832
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3a214b;
/* rgb */ color: rgb(58, 33, 75);
/* oklch */ color: oklch(30.1% 0.078 310.0);
Tailwind
colors: {
  custom: {
    50: '#715d7d',
    500: '#3a214b',
    950: '#000000',
  },
}
SCSS
$custom: #3a214b;
$custom-light: #715d7d;
$custom-dark: #000000;
JSON
{
  "hex": "#3a214b",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 75
  },
  "hsl": {
    "h": 275.714,
    "s": 38.889,
    "l": 21.176
  },
  "oklch": {
    "l": 0.30101,
    "c": 0.07836,
    "h": 310
  },
  "luminance": 0.02495
}

Semantic roles & 50–950 ramp

primary
#3A214B
secondary
#5F7F49
accent
#CF5989
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#080409
muted
#7B797B

Preview Lab

Preview with #3A214B

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

Preview Lab → · Contrast checker → · Palette generator →

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