#3A239A#3A239A

#3A239A is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.179 H 282.2°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#3A239A
RGBrgb(58, 35, 154)
HSLhsl(252, 63%, 37%)
HSVhsv(252, 77%, 60%)
CMYKcmyk(62.3%, 77.3%, 0%, 39.6%)
CIE-LABlab(25.06, 43.75, -60.77)
CIE-LCHlch(25.06, 74.88, 305.75°)
OKLaboklab(37.34% 0.0379 -0.1753)
OKLCHoklch(37.34% 0.179 282.2)
XYZxyz(8.1769, 4.4341, 30.9906)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A239A #839A23
analogous
#23479A #3A239A #76239A
triadic
#3A239A #9A3A23 #239A3A
tetradic
#3A239A #9A2347 #839A23 #239A76
square
#3A239A #9A2347 #839A23 #239A76
split-complementary
#3A239A #9A7623 #479A23
monochromatic
#140C36 #271868 #3A239A #4D2ECC #755DDA

Accessibility & contrast

On white

11.13
#3A239A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A239A
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A239A#FFFFFF#000000##FFFFFF
##3A239A1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9D
Deuteranopia (green-blind)
#003798
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3a239a;
/* rgb */ color: rgb(58, 35, 154);
/* oklch */ color: oklch(37.3% 0.179 282.2);
Tailwind
colors: {
  custom: {
    50: '#7d61b9',
    500: '#3a239a',
    950: '#000000',
  },
}
SCSS
$custom: #3a239a;
$custom-light: #7d61b9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a239a",
  "rgb": {
    "r": 58,
    "g": 35,
    "b": 154
  },
  "hsl": {
    "h": 251.597,
    "s": 62.963,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37336,
    "c": 0.17931,
    "h": 282.2
  },
  "luminance": 0.04435
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A239A

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

Preview Lab → · Contrast checker → · Palette generator →

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