#3B239C#3B239C

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

Color values

HEX#3B239C
RGBrgb(59, 35, 156)
HSLhsl(252, 63%, 37%)
HSVhsv(252, 78%, 61%)
CMYKcmyk(62.2%, 77.6%, 0%, 38.8%)
CIE-LABlab(25.36, 44.49, -61.50)
CIE-LCHlch(25.36, 75.90, 305.88°)
OKLaboklab(37.63% 0.0389 -0.1774)
OKLCHoklch(37.63% 0.182 282.4)
XYZxyz(8.4035, 4.5316, 31.8779)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B239C #849C23
analogous
#23479C #3B239C #78239C
triadic
#3B239C #9C3B23 #239C3B
tetradic
#3B239C #9C2347 #849C23 #239C78
square
#3B239C #9C2347 #849C23 #239C78
split-complementary
#3B239C #9C7823 #479C23
monochromatic
#150D38 #28186A #3B239C #4E2ECE #775EDB

Accessibility & contrast

On white

11.02
#3B239C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B239C
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B239C#FFFFFF#000000##FFFFFF
##3B239C1.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409F
Deuteranopia (green-blind)
#00389A
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3b239c;
/* rgb */ color: rgb(59, 35, 156);
/* oklch */ color: oklch(37.6% 0.182 282.4);
Tailwind
colors: {
  custom: {
    50: '#7e61ba',
    500: '#3b239c',
    950: '#000000',
  },
}
SCSS
$custom: #3b239c;
$custom-light: #7e61ba;
$custom-dark: #000000;
JSON
{
  "hex": "#3b239c",
  "rgb": {
    "r": 59,
    "g": 35,
    "b": 156
  },
  "hsl": {
    "h": 251.901,
    "s": 63.351,
    "l": 37.451
  },
  "oklch": {
    "l": 0.3763,
    "c": 0.18157,
    "h": 282.4
  },
  "luminance": 0.04532
}

Semantic roles & 50–950 ramp

primary
#3B239C
secondary
#ACC05B
accent
#E641C6
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3B239C

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

Preview Lab → · Contrast checker → · Palette generator →

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