#3B239B#3B239B

#3B239B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.180 H 282.5°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#3B239B
RGBrgb(59, 35, 155)
HSLhsl(252, 63%, 37%)
HSVhsv(252, 77%, 61%)
CMYKcmyk(61.9%, 77.4%, 0%, 39.2%)
CIE-LABlab(25.25, 44.18, -61.06)
CIE-LCHlch(25.25, 75.37, 305.89°)
OKLaboklab(37.53% 0.0391 -0.1761)
OKLCHoklch(37.53% 0.18 282.5)
XYZxyz(8.3192, 4.4978, 31.4338)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B239B #839B23
analogous
#23479B #3B239B #77239B
triadic
#3B239B #9B3B23 #239B3B
tetradic
#3B239B #9B2347 #839B23 #239B77
square
#3B239B #9B2347 #839B23 #239B77
split-complementary
#3B239B #9B7723 #479B23
monochromatic
#150C37 #281869 #3B239B #4E2ECD #775EDB

Accessibility & contrast

On white

11.05
#3B239B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B239B
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B239B#FFFFFF#000000##FFFFFF
##3B239B1.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3b239b;
/* rgb */ color: rgb(59, 35, 155);
/* oklch */ color: oklch(37.5% 0.180 282.5);
Tailwind
colors: {
  custom: {
    50: '#7d61ba',
    500: '#3b239b',
    950: '#000000',
  },
}
SCSS
$custom: #3b239b;
$custom-light: #7d61ba;
$custom-dark: #000000;
JSON
{
  "hex": "#3b239b",
  "rgb": {
    "r": 59,
    "g": 35,
    "b": 155
  },
  "hsl": {
    "h": 252,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37527,
    "c": 0.18037,
    "h": 282.5
  },
  "luminance": 0.04498
}

Semantic roles & 50–950 ramp

primary
#3B239B
secondary
#ABBF5A
accent
#E642C5
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3B239B

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

Preview Lab → · Contrast checker → · Palette generator →

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