#3A2298#3A2298

#3A2298 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.178 H 282.7°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#3A2298
RGBrgb(58, 34, 152)
HSLhsl(252, 63%, 36%)
HSVhsv(252, 78%, 60%)
CMYKcmyk(61.8%, 77.6%, 0%, 40.4%)
CIE-LABlab(24.67, 43.66, -60.18)
CIE-LCHlch(24.67, 74.35, 305.96°)
OKLaboklab(37% 0.0391 -0.1735)
OKLCHoklch(37% 0.178 282.7)
XYZxyz(7.9827, 4.3100, 30.1109)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2298 #809822
analogous
#224598 #3A2298 #752298
triadic
#3A2298 #983A22 #22983A
tetradic
#3A2298 #982245 #809822 #229875
square
#3A2298 #982245 #809822 #229875
split-complementary
#3A2298 #987522 #459822
monochromatic
#140C34 #271766 #3A2298 #4D2DCA #745ADA

Accessibility & contrast

On white

11.28
#3A2298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#3A2298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2298
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2298#FFFFFF#000000##FFFFFF
##3A22981.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9B
Deuteranopia (green-blind)
#003696
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3a2298;
/* rgb */ color: rgb(58, 34, 152);
/* oklch */ color: oklch(37.0% 0.178 282.7);
Tailwind
colors: {
  custom: {
    50: '#7c61b7',
    500: '#3a2298',
    950: '#000000',
  },
}
SCSS
$custom: #3a2298;
$custom-light: #7c61b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2298",
  "rgb": {
    "r": 58,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 252.203,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37003,
    "c": 0.17788,
    "h": 282.7
  },
  "luminance": 0.04311
}

Semantic roles & 50–950 ramp

primary
#3A2298
secondary
#A9BE57
accent
#E641C5
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3A2298

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

Preview Lab → · Contrast checker → · Palette generator →

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