#3A229B#3A229B

#3A229B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.181 H 282.2°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#3A229B
RGBrgb(58, 34, 155)
HSLhsl(252, 64%, 37%)
HSVhsv(252, 78%, 61%)
CMYKcmyk(62.6%, 78.1%, 0%, 39.2%)
CIE-LABlab(24.98, 44.57, -61.51)
CIE-LCHlch(24.98, 75.96, 305.93°)
OKLaboklab(37.31% 0.0383 -0.1774)
OKLCHoklch(37.31% 0.181 282.2)
XYZxyz(8.2315, 4.4096, 31.4214)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A229B #839B22
analogous
#22479B #3A229B #77229B
triadic
#3A229B #9B3A22 #229B3A
tetradic
#3A229B #9B2247 #839B22 #229B77
square
#3A229B #9B2247 #839B22 #229B77
split-complementary
#3A229B #9B7722 #479B22
monochromatic
#140C37 #271769 #3A229B #4D2DCD #755CDB

Accessibility & contrast

On white

11.16
#3A229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#3A229B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A229B
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A229B#FFFFFF#000000##FFFFFF
##3A229B1.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9E
Deuteranopia (green-blind)
#003799
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3a229b;
/* rgb */ color: rgb(58, 34, 155);
/* oklch */ color: oklch(37.3% 0.181 282.2);
Tailwind
colors: {
  custom: {
    50: '#7d61ba',
    500: '#3a229b',
    950: '#000000',
  },
}
SCSS
$custom: #3a229b;
$custom-light: #7d61ba;
$custom-dark: #000000;
JSON
{
  "hex": "#3a229b",
  "rgb": {
    "r": 58,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 251.901,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37314,
    "c": 0.18148,
    "h": 282.2
  },
  "luminance": 0.0441
}

Semantic roles & 50–950 ramp

primary
#3A229B
secondary
#ABC059
accent
#E741C6
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A229B

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

Preview Lab → · Contrast checker → · Palette generator →

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