#3B229E#3B229E

#3B229E is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.185 H 282.2°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#3B229E
RGBrgb(59, 34, 158)
HSLhsl(252, 65%, 38%)
HSVhsv(252, 78%, 62%)
CMYKcmyk(62.7%, 78.5%, 0%, 38%)
CIE-LABlab(25.39, 45.60, -62.67)
CIE-LCHlch(25.39, 77.50, 306.04°)
OKLaboklab(37.71% 0.0389 -0.1808)
OKLCHoklch(37.71% 0.185 282.2)
XYZxyz(8.5453, 4.5419, 32.7675)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B229E #859E22
analogous
#22479E #3B229E #79229E
triadic
#3B229E #9E3B22 #229E3B
tetradic
#3B229E #9E2247 #859E22 #229E79
square
#3B229E #9E2247 #859E22 #229E79
split-complementary
#3B229E #9E7922 #479E22
monochromatic
#150C39 #28176C #3B229E #4E2DD0 #785EDC

Accessibility & contrast

On white

11.00
#3B229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#3B229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B229E
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B229E#FFFFFF#000000##FFFFFF
##3B229E1.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3b229e;
/* rgb */ color: rgb(59, 34, 158);
/* oklch */ color: oklch(37.7% 0.185 282.2);
Tailwind
colors: {
  custom: {
    50: '#7e61bc',
    500: '#3b229e',
    950: '#000000',
  },
}
SCSS
$custom: #3b229e;
$custom-light: #7e61bc;
$custom-dark: #000000;
JSON
{
  "hex": "#3b229e",
  "rgb": {
    "r": 59,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 252.097,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37714,
    "c": 0.18491,
    "h": 282.2
  },
  "luminance": 0.04542
}

Semantic roles & 50–950 ramp

primary
#3B229E
secondary
#ACC15B
accent
#E840C6
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3B229E

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

Preview Lab → · Contrast checker → · Palette generator →

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