#3A218E#3A218E

#3A218E is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.167 H 284.8°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#3A218E
RGBrgb(58, 33, 142)
HSLhsl(254, 62%, 34%)
HSVhsv(254, 77%, 56%)
CMYKcmyk(59.2%, 76.8%, 0%, 44.3%)
CIE-LABlab(23.47, 41.13, -55.98)
CIE-LCHlch(23.47, 69.46, 306.31°)
OKLaboklab(35.85% 0.0425 -0.1612)
OKLCHoklch(35.85% 0.167 284.8)
XYZxyz(7.1698, 3.9398, 25.9686)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A218E #758E21
analogous
#213F8E #3A218E #71218E
triadic
#3A218E #8E3A21 #218E3A
tetradic
#3A218E #8E213F #758E21 #218E71
square
#3A218E #8E213F #758E21 #218E71
split-complementary
#3A218E #8E7121 #3F8E21
monochromatic
#110A2B #26155C #3A218E #4E2DC0 #7152D7

Accessibility & contrast

On white

11.74
#3A218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#3A218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A218E
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A218E#FFFFFF#000000##FFFFFF
##3A218E1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#00348C
Tritanopia (blue-blind)
#0C4056
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3a218e;
/* rgb */ color: rgb(58, 33, 142);
/* oklch */ color: oklch(35.9% 0.167 284.8);
Tailwind
colors: {
  custom: {
    50: '#7b5fb0',
    500: '#3a218e',
    950: '#000000',
  },
}
SCSS
$custom: #3a218e;
$custom-light: #7b5fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a218e",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 253.761,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35855,
    "c": 0.16675,
    "h": 284.8
  },
  "luminance": 0.0394
}

Semantic roles & 50–950 ramp

primary
#3A218E
secondary
#A2BA50
accent
#E542C0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #3A218E

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

Preview Lab → · Contrast checker → · Palette generator →

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