#3A239B#3A239B

#3A239B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.4% C 0.181 H 282.0°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#3A239B
RGBrgb(58, 35, 155)
HSLhsl(252, 63%, 37%)
HSVhsv(252, 77%, 61%)
CMYKcmyk(62.6%, 77.4%, 0%, 39.2%)
CIE-LABlab(25.16, 44.06, -61.21)
CIE-LCHlch(25.16, 75.42, 305.75°)
OKLaboklab(37.44% 0.0376 -0.1766)
OKLCHoklch(37.44% 0.181 282)
XYZxyz(8.2605, 4.4676, 31.4310)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A239B #849B23
analogous
#23489B #3A239B #76239B
triadic
#3A239B #9B3A23 #239B3A
tetradic
#3A239B #9B2348 #849B23 #239B76
square
#3A239B #9B2348 #849B23 #239B76
split-complementary
#3A239B #9B7623 #489B23
monochromatic
#150C37 #271869 #3A239B #4D2ECD #765EDB

Accessibility & contrast

On white

11.09
#3A239B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#3A239B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A239B
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A239B#FFFFFF#000000##FFFFFF
##3A239B1.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a239b;
/* rgb */ color: rgb(58, 35, 155);
/* oklch */ color: oklch(37.4% 0.181 282.0);
Tailwind
colors: {
  custom: {
    50: '#7d61ba',
    500: '#3a239b',
    950: '#000000',
  },
}
SCSS
$custom: #3a239b;
$custom-light: #7d61ba;
$custom-dark: #000000;
JSON
{
  "hex": "#3a239b",
  "rgb": {
    "r": 58,
    "g": 35,
    "b": 155
  },
  "hsl": {
    "h": 251.5,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37439,
    "c": 0.18051,
    "h": 282
  },
  "luminance": 0.04468
}

Semantic roles & 50–950 ramp

primary
#3A239B
secondary
#ACBF5A
accent
#E642C7
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A239B

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

Preview Lab → · Contrast checker → · Palette generator →

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