#3A226E#3A226E

#3A226E is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.0% C 0.125 H 292.8°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#3A226E
RGBrgb(58, 34, 110)
HSLhsl(259, 53%, 28%)
HSVhsv(259, 69%, 43%)
CMYKcmyk(47.3%, 69.1%, 0%, 56.9%)
CIE-LABlab(20.71, 30.74, -40.21)
CIE-LCHlch(20.71, 50.61, 307.39°)
OKLaboklab(32.98% 0.0483 -0.115)
OKLCHoklch(32.98% 0.125 292.8)
XYZxyz(5.1306, 3.1692, 15.0902)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A226E #566E22
analogous
#22306E #3A226E #60226E
triadic
#3A226E #6E3A22 #226E3A
tetradic
#3A226E #6E2230 #566E22 #226E60
square
#3A226E #6E2230 #566E22 #226E60
split-complementary
#3A226E #6E6022 #306E22
monochromatic
#0C0717 #21143F #3A226E #53309D #6E45C5

Accessibility & contrast

On white

12.85
#3A226E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3A226E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A226E
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A226E#FFFFFF#000000##FFFFFF
##3A226E1.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003370
Deuteranopia (green-blind)
#00306C
Tritanopia (blue-blind)
#2B3444
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3a226e;
/* rgb */ color: rgb(58, 34, 110);
/* oklch */ color: oklch(33.0% 0.125 292.8);
Tailwind
colors: {
  custom: {
    50: '#755f98',
    500: '#3a226e',
    950: '#000000',
  },
}
SCSS
$custom: #3a226e;
$custom-light: #755f98;
$custom-dark: #000000;
JSON
{
  "hex": "#3a226e",
  "rgb": {
    "r": 58,
    "g": 34,
    "b": 110
  },
  "hsl": {
    "h": 258.947,
    "s": 52.778,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32977,
    "c": 0.12472,
    "h": 292.8
  },
  "luminance": 0.03169
}

Semantic roles & 50–950 ramp

primary
#3A226E
secondary
#86A14A
accent
#DC4CAF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3A226E

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

Preview Lab → · Contrast checker → · Palette generator →

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