#3A2098#3A2098

#3A2098 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.180 H 283.0°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#3A2098
RGBrgb(58, 32, 152)
HSLhsl(253, 65%, 36%)
HSVhsv(253, 79%, 60%)
CMYKcmyk(61.8%, 78.9%, 0%, 40.4%)
CIE-LABlab(24.32, 44.67, -60.76)
CIE-LCHlch(24.32, 75.41, 306.32°)
OKLaboklab(36.76% 0.0404 -0.1752)
OKLCHoklch(36.76% 0.18 283)
XYZxyz(7.9272, 4.1990, 30.0924)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2098 #7E9820
analogous
#204298 #3A2098 #762098
triadic
#3A2098 #983A20 #20983A
tetradic
#3A2098 #982042 #7E9820 #209876
square
#3A2098 #982042 #7E9820 #209876
split-complementary
#3A2098 #987620 #429820
monochromatic
#130B33 #271565 #3A2098 #4D2BCB #7457DC

Accessibility & contrast

On white

11.41
#3A2098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#3A2098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2098
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2098#FFFFFF#000000##FFFFFF
##3A20981.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9B
Deuteranopia (green-blind)
#003696
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3a2098;
/* rgb */ color: rgb(58, 32, 152);
/* oklch */ color: oklch(36.8% 0.180 283.0);
Tailwind
colors: {
  custom: {
    50: '#7d5fb7',
    500: '#3a2098',
    950: '#000000',
  },
}
SCSS
$custom: #3a2098;
$custom-light: #7d5fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2098",
  "rgb": {
    "r": 58,
    "g": 32,
    "b": 152
  },
  "hsl": {
    "h": 253,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36757,
    "c": 0.1798,
    "h": 283
  },
  "luminance": 0.042
}

Semantic roles & 50–950 ramp

primary
#3A2098
secondary
#A8BF54
accent
#E840C4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3A2098

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

Preview Lab → · Contrast checker → · Palette generator →

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