#3A218C#3A218C

#3A218C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.164 H 285.2°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#3A218C
RGBrgb(58, 33, 140)
HSLhsl(254, 62%, 34%)
HSVhsv(254, 76%, 55%)
CMYKcmyk(58.6%, 76.4%, 0%, 45.1%)
CIE-LABlab(23.27, 40.52, -55.06)
CIE-LCHlch(23.27, 68.36, 306.35°)
OKLaboklab(35.65% 0.0431 -0.1586)
OKLCHoklch(35.65% 0.164 285.2)
XYZxyz(7.0210, 3.8803, 25.1849)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A218C #738C21
analogous
#213E8C #3A218C #70218C
triadic
#3A218C #8C3A21 #218C3A
tetradic
#3A218C #8C213E #738C21 #218C70
square
#3A218C #8C213E #738C21 #218C70
split-complementary
#3A218C #8C7021 #3E8C21
monochromatic
#110A29 #25155A #3A218C #4F2DBE #7051D6

Accessibility & contrast

On white

11.82
#3A218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#3A218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A218C
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A218C#FFFFFF#000000##FFFFFF
##3A218C1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00348A
Tritanopia (blue-blind)
#103F55
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3a218c;
/* rgb */ color: rgb(58, 33, 140);
/* oklch */ color: oklch(35.7% 0.164 285.2);
Tailwind
colors: {
  custom: {
    50: '#7a5faf',
    500: '#3a218c',
    950: '#000000',
  },
}
SCSS
$custom: #3a218c;
$custom-light: #7a5faf;
$custom-dark: #000000;
JSON
{
  "hex": "#3a218c",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 254.019,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35654,
    "c": 0.1643,
    "h": 285.2
  },
  "luminance": 0.03881
}

Semantic roles & 50–950 ramp

primary
#3A218C
secondary
#A1B94F
accent
#E543BF
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3A218C

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

Preview Lab → · Contrast checker → · Palette generator →

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