#3B229D#3B229D

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

Color values

HEX#3B229D
RGBrgb(59, 34, 157)
HSLhsl(252, 64%, 37%)
HSVhsv(252, 78%, 62%)
CMYKcmyk(62.4%, 78.3%, 0%, 38.4%)
CIE-LABlab(25.28, 45.30, -62.23)
CIE-LCHlch(25.28, 76.97, 306.05°)
OKLaboklab(37.61% 0.0392 -0.1795)
OKLCHoklch(37.61% 0.184 282.3)
XYZxyz(8.4596, 4.5076, 32.3160)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B229D #849D22
analogous
#22479D #3B229D #78229D
triadic
#3B229D #9D3B22 #229D3B
tetradic
#3B229D #9D2247 #849D22 #229D78
square
#3B229D #9D2247 #849D22 #229D78
split-complementary
#3B229D #9D7822 #479D22
monochromatic
#150C38 #28176B #3B229D #4E2DCF #775DDC

Accessibility & contrast

On white

11.04
#3B229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B229D
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B229D#FFFFFF#000000##FFFFFF
##3B229D1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3b229d;
/* rgb */ color: rgb(59, 34, 157);
/* oklch */ color: oklch(37.6% 0.184 282.3);
Tailwind
colors: {
  custom: {
    50: '#7e61bb',
    500: '#3b229d',
    950: '#000000',
  },
}
SCSS
$custom: #3b229d;
$custom-light: #7e61bb;
$custom-dark: #000000;
JSON
{
  "hex": "#3b229d",
  "rgb": {
    "r": 59,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 252.195,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.3761,
    "c": 0.18372,
    "h": 282.3
  },
  "luminance": 0.04508
}

Semantic roles & 50–950 ramp

primary
#3B229D
secondary
#ACC15A
accent
#E740C5
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3B229D

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

Preview Lab → · Contrast checker → · Palette generator →

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