#3A2292#3A2292

#3A2292 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.171 H 283.8°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#3A2292
RGBrgb(58, 34, 146)
HSLhsl(253, 62%, 35%)
HSVhsv(253, 77%, 57%)
CMYKcmyk(60.3%, 76.7%, 0%, 42.7%)
CIE-LABlab(24.06, 41.83, -57.49)
CIE-LCHlch(24.06, 71.09, 306.04°)
OKLaboklab(36.39% 0.0407 -0.1657)
OKLCHoklch(36.39% 0.171 283.8)
XYZxyz(7.5037, 4.1184, 27.5881)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2292 #7A9222
analogous
#224292 #3A2292 #722292
triadic
#3A2292 #923A22 #22923A
tetradic
#3A2292 #922242 #7A9222 #229272
square
#3A2292 #922242 #7A9222 #229272
split-complementary
#3A2292 #927222 #429222
monochromatic
#130B2F #261660 #3A2292 #4E2EC4 #7257D8

Accessibility & contrast

On white

11.51
#3A2292 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#3A2292 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2292
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2292#FFFFFF#000000##FFFFFF
##3A22921.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D95
Deuteranopia (green-blind)
#003590
Tritanopia (blue-blind)
#024258
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3a2292;
/* rgb */ color: rgb(58, 34, 146);
/* oklch */ color: oklch(36.4% 0.171 283.8);
Tailwind
colors: {
  custom: {
    50: '#7b60b3',
    500: '#3a2292',
    950: '#000000',
  },
}
SCSS
$custom: #3a2292;
$custom-light: #7b60b3;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2292",
  "rgb": {
    "r": 58,
    "g": 34,
    "b": 146
  },
  "hsl": {
    "h": 252.857,
    "s": 62.222,
    "l": 35.294
  },
  "oklch": {
    "l": 0.3639,
    "c": 0.1706,
    "h": 283.8
  },
  "luminance": 0.04119
}

Semantic roles & 50–950 ramp

primary
#3A2292
secondary
#A6BC54
accent
#E543C2
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #3A2292

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

Preview Lab → · Contrast checker → · Palette generator →

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