#3A229D#3A229D

#3A229D is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.184 H 281.8°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#3A229D
RGBrgb(58, 34, 157)
HSLhsl(252, 64%, 37%)
HSVhsv(252, 78%, 62%)
CMYKcmyk(63.1%, 78.3%, 0%, 38.4%)
CIE-LABlab(25.19, 45.18, -62.39)
CIE-LCHlch(25.19, 77.03, 305.91°)
OKLaboklab(37.52% 0.0377 -0.18)
OKLCHoklch(37.52% 0.184 281.8)
XYZxyz(8.4008, 4.4773, 32.3133)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A229D #859D22
analogous
#22489D #3A229D #77229D
triadic
#3A229D #9D3A22 #229D3A
tetradic
#3A229D #9D2248 #859D22 #229D77
square
#3A229D #9D2248 #859D22 #229D77
split-complementary
#3A229D #9D7722 #489D22
monochromatic
#150C38 #27176B #3A229D #4D2DCF #765DDC

Accessibility & contrast

On white

11.08
#3A229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#3A229D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A229D
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A229D#FFFFFF#000000##FFFFFF
##3A229D1.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A0
Deuteranopia (green-blind)
#00379B
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3a229d;
/* rgb */ color: rgb(58, 34, 157);
/* oklch */ color: oklch(37.5% 0.184 281.8);
Tailwind
colors: {
  custom: {
    50: '#7d61bb',
    500: '#3a229d',
    950: '#000000',
  },
}
SCSS
$custom: #3a229d;
$custom-light: #7d61bb;
$custom-dark: #000000;
JSON
{
  "hex": "#3a229d",
  "rgb": {
    "r": 58,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 251.707,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37522,
    "c": 0.18388,
    "h": 281.8
  },
  "luminance": 0.04478
}

Semantic roles & 50–950 ramp

primary
#3A229D
secondary
#ADC15A
accent
#E740C7
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A229D

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

Preview Lab → · Contrast checker → · Palette generator →

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