#3B229F#3B229F

#3B229F is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.186 H 282.0°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#3B229F
RGBrgb(59, 34, 159)
HSLhsl(252, 65%, 38%)
HSVhsv(252, 79%, 62%)
CMYKcmyk(62.9%, 78.6%, 0%, 37.6%)
CIE-LABlab(25.49, 45.90, -63.11)
CIE-LCHlch(25.49, 78.03, 306.03°)
OKLaboklab(37.82% 0.0386 -0.182)
OKLCHoklch(37.82% 0.186 282)
XYZxyz(8.6317, 4.5764, 33.2226)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B229F #869F22
analogous
#22479F #3B229F #79229F
triadic
#3B229F #9F3B22 #229F3B
tetradic
#3B229F #9F2247 #869F22 #229F79
square
#3B229F #9F2247 #869F22 #229F79
split-complementary
#3B229F #9F7922 #479F22
monochromatic
#160C3A #28176D #3B229F #4E2DD1 #785FDD

Accessibility & contrast

On white

10.96
#3B229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#3B229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B229F
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B229F#FFFFFF#000000##FFFFFF
##3B229F1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A3
Deuteranopia (green-blind)
#00389D
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3b229f;
/* rgb */ color: rgb(59, 34, 159);
/* oklch */ color: oklch(37.8% 0.186 282.0);
Tailwind
colors: {
  custom: {
    50: '#7e61bd',
    500: '#3b229f',
    950: '#000000',
  },
}
SCSS
$custom: #3b229f;
$custom-light: #7e61bd;
$custom-dark: #000000;
JSON
{
  "hex": "#3b229f",
  "rgb": {
    "r": 59,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 252,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37818,
    "c": 0.1861,
    "h": 282
  },
  "luminance": 0.04577
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3B229F

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

Preview Lab → · Contrast checker → · Palette generator →

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