#3A2276#3A2276

#3A2276 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.7% C 0.135 H 290.4°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#3A2276
RGBrgb(58, 34, 118)
HSLhsl(257, 55%, 30%)
HSVhsv(257, 71%, 46%)
CMYKcmyk(50.8%, 71.2%, 0%, 53.7%)
CIE-LABlab(21.40, 33.19, -44.23)
CIE-LCHlch(21.40, 55.30, 306.88°)
OKLaboklab(33.69% 0.0471 -0.1268)
OKLCHoklch(33.69% 0.135 290.4)
XYZxyz(5.5860, 3.3514, 17.4886)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2276 #5E7622
analogous
#223476 #3A2276 #642276
triadic
#3A2276 #763A22 #22763A
tetradic
#3A2276 #762234 #5E7622 #227664
square
#3A2276 #762234 #5E7622 #227664
split-complementary
#3A2276 #766422 #347622
monochromatic
#0C0718 #231446 #3A2276 #5130A6 #6D48CA

Accessibility & contrast

On white

12.57
#3A2276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#3A2276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2276
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2276#FFFFFF#000000##FFFFFF
##3A22761.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003579
Deuteranopia (green-blind)
#003174
Tritanopia (blue-blind)
#263749
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3a2276;
/* rgb */ color: rgb(58, 34, 118);
/* oklch */ color: oklch(33.7% 0.135 290.4);
Tailwind
colors: {
  custom: {
    50: '#765f9e',
    500: '#3a2276',
    950: '#000000',
  },
}
SCSS
$custom: #3a2276;
$custom-light: #765f9e;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2276",
  "rgb": {
    "r": 58,
    "g": 34,
    "b": 118
  },
  "hsl": {
    "h": 257.143,
    "s": 55.263,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33689,
    "c": 0.13528,
    "h": 290.4
  },
  "luminance": 0.03352
}

Semantic roles & 50–950 ramp

primary
#3A2276
secondary
#8EA94B
accent
#DF49B4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #3A2276

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

Preview Lab → · Contrast checker → · Palette generator →

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