#3A2099#3A2099

#3A2099 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.181 H 282.8°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#3A2099
RGBrgb(58, 32, 153)
HSLhsl(253, 65%, 36%)
HSVhsv(253, 79%, 60%)
CMYKcmyk(62.1%, 79.1%, 0%, 40%)
CIE-LABlab(24.42, 44.97, -61.20)
CIE-LCHlch(24.42, 75.95, 306.31°)
OKLaboklab(36.86% 0.0401 -0.1765)
OKLCHoklch(36.86% 0.181 282.8)
XYZxyz(8.0094, 4.2319, 30.5256)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2099 #7F9920
analogous
#204399 #3A2099 #772099
triadic
#3A2099 #993A20 #20993A
tetradic
#3A2099 #992043 #7F9920 #209977
square
#3A2099 #992043 #7F9920 #209977
split-complementary
#3A2099 #997720 #439920
monochromatic
#140B34 #271566 #3A2099 #4D2BCC #7457DC

Accessibility & contrast

On white

11.37
#3A2099 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#3A2099 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2099
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2099#FFFFFF#000000##FFFFFF
##3A20991.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9C
Deuteranopia (green-blind)
#003697
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3a2099;
/* rgb */ color: rgb(58, 32, 153);
/* oklch */ color: oklch(36.9% 0.181 282.8);
Tailwind
colors: {
  custom: {
    50: '#7d60b8',
    500: '#3a2099',
    950: '#000000',
  },
}
SCSS
$custom: #3a2099;
$custom-light: #7d60b8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2099",
  "rgb": {
    "r": 58,
    "g": 32,
    "b": 153
  },
  "hsl": {
    "h": 252.893,
    "s": 65.405,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36862,
    "c": 0.18099,
    "h": 282.8
  },
  "luminance": 0.04232
}

Semantic roles & 50–950 ramp

primary
#3A2099
secondary
#A9C055
accent
#E83FC4
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A2099

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

Preview Lab → · Contrast checker → · Palette generator →

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