#3B239D#3B239D

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

Color values

HEX#3B239D
RGBrgb(59, 35, 157)
HSLhsl(252, 64%, 38%)
HSVhsv(252, 78%, 62%)
CMYKcmyk(62.4%, 77.7%, 0%, 38.4%)
CIE-LABlab(25.46, 44.79, -61.94)
CIE-LCHlch(25.46, 76.44, 305.87°)
OKLaboklab(37.73% 0.0386 -0.1786)
OKLCHoklch(37.73% 0.183 282.2)
XYZxyz(8.4886, 4.5656, 32.3257)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B239D #859D23
analogous
#23489D #3B239D #78239D
triadic
#3B239D #9D3B23 #239D3B
tetradic
#3B239D #9D2348 #859D23 #239D78
square
#3B239D #9D2348 #859D23 #239D78
split-complementary
#3B239D #9D7823 #489D23
monochromatic
#150D39 #28186B #3B239D #4E2ECF #785FDB

Accessibility & contrast

On white

10.98
#3B239D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B239D
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B239D#FFFFFF#000000##FFFFFF
##3B239D1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3b239d;
/* rgb */ color: rgb(59, 35, 157);
/* oklch */ color: oklch(37.7% 0.183 282.2);
Tailwind
colors: {
  custom: {
    50: '#7e61bb',
    500: '#3b239d',
    950: '#000000',
  },
}
SCSS
$custom: #3b239d;
$custom-light: #7e61bb;
$custom-dark: #000000;
JSON
{
  "hex": "#3b239d",
  "rgb": {
    "r": 59,
    "g": 35,
    "b": 157
  },
  "hsl": {
    "h": 251.803,
    "s": 63.542,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37733,
    "c": 0.18276,
    "h": 282.2
  },
  "luminance": 0.04566
}

Semantic roles & 50–950 ramp

primary
#3B239D
secondary
#ACC05C
accent
#E741C6
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3B239D

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

Preview Lab → · Contrast checker → · Palette generator →

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