#3B229B#3B229B

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

Color values

HEX#3B229B
RGBrgb(59, 34, 155)
HSLhsl(252, 64%, 37%)
HSVhsv(252, 78%, 61%)
CMYKcmyk(61.9%, 78.1%, 0%, 39.2%)
CIE-LABlab(25.08, 44.69, -61.35)
CIE-LCHlch(25.08, 75.90, 306.07°)
OKLaboklab(37.4% 0.0398 -0.1769)
OKLCHoklch(37.4% 0.181 282.7)
XYZxyz(8.2902, 4.4398, 31.4241)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B229B #829B22
analogous
#22459B #3B229B #78229B
triadic
#3B229B #9B3B22 #229B3B
tetradic
#3B229B #9B2245 #829B22 #229B78
square
#3B229B #9B2245 #829B22 #229B78
split-complementary
#3B229B #9B7822 #459B22
monochromatic
#150C37 #281769 #3B229B #4E2DCD #765CDB

Accessibility & contrast

On white

11.12
#3B229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#3B229B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B229B
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B229B#FFFFFF#000000##FFFFFF
##3B229B1.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.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: #3b229b;
/* rgb */ color: rgb(59, 34, 155);
/* oklch */ color: oklch(37.4% 0.181 282.7);
Tailwind
colors: {
  custom: {
    50: '#7e61ba',
    500: '#3b229b',
    950: '#000000',
  },
}
SCSS
$custom: #3b229b;
$custom-light: #7e61ba;
$custom-dark: #000000;
JSON
{
  "hex": "#3b229b",
  "rgb": {
    "r": 59,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 252.397,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37402,
    "c": 0.18133,
    "h": 282.7
  },
  "luminance": 0.0444
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3B229B

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

Preview Lab → · Contrast checker → · Palette generator →

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