#3A239C#3A239C

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

Color values

HEX#3A239C
RGBrgb(58, 35, 156)
HSLhsl(251, 63%, 37%)
HSVhsv(251, 78%, 61%)
CMYKcmyk(62.8%, 77.6%, 0%, 38.8%)
CIE-LABlab(25.26, 44.36, -61.65)
CIE-LCHlch(25.26, 75.96, 305.74°)
OKLaboklab(37.54% 0.0374 -0.1778)
OKLCHoklch(37.54% 0.182 281.9)
XYZxyz(8.3448, 4.5013, 31.8751)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A239C #859C23
analogous
#23489C #3A239C #77239C
triadic
#3A239C #9C3A23 #239C3A
tetradic
#3A239C #9C2348 #859C23 #239C77
square
#3A239C #9C2348 #859C23 #239C77
split-complementary
#3A239C #9C7723 #489C23
monochromatic
#150D38 #27186A #3A239C #4D2ECE #765EDB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3A239C#FFFFFF#000000##FFFFFF
##3A239C1.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)
#00409F
Deuteranopia (green-blind)
#00389A
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3a239c;
/* rgb */ color: rgb(58, 35, 156);
/* oklch */ color: oklch(37.5% 0.182 281.9);
Tailwind
colors: {
  custom: {
    50: '#7d61ba',
    500: '#3a239c',
    950: '#000000',
  },
}
SCSS
$custom: #3a239c;
$custom-light: #7d61ba;
$custom-dark: #000000;
JSON
{
  "hex": "#3a239c",
  "rgb": {
    "r": 58,
    "g": 35,
    "b": 156
  },
  "hsl": {
    "h": 251.405,
    "s": 63.351,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37543,
    "c": 0.18172,
    "h": 281.9
  },
  "luminance": 0.04502
}

Semantic roles & 50–950 ramp

primary
#3A239C
secondary
#ADC05B
accent
#E641C7
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A239C

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

Preview Lab → · Contrast checker → · Palette generator →

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