#3A22AA#3A22AA

#3A22AA is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.9% C 0.199 H 279.8°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#3A22AA
RGBrgb(58, 34, 170)
HSLhsl(251, 67%, 40%)
HSVhsv(251, 80%, 67%)
CMYKcmyk(65.9%, 80%, 0%, 33.3%)
CIE-LABlab(26.58, 49.09, -67.98)
CIE-LCHlch(26.58, 83.85, 305.83°)
OKLaboklab(38.9% 0.034 -0.1963)
OKLCHoklch(38.9% 0.199 279.8)
XYZxyz(9.5703, 4.9451, 38.4726)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A22AA #92AA22
analogous
#224EAA #3A22AA #7E22AA
triadic
#3A22AA #AA3A22 #22AA3A
tetradic
#3A22AA #AA224E #92AA22 #22AA7E
square
#3A22AA #AA224E #92AA22 #22AA7E
split-complementary
#3A22AA #AA7E22 #4EAA22
monochromatic
#170E44 #291877 #3A22AA #5033D6 #7C66E0

Accessibility & contrast

On white

10.56
#3A22AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#3A22AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A22AA
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A22AA#FFFFFF#000000##FFFFFF
##3A22AA1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AE
Deuteranopia (green-blind)
#003AA8
Tritanopia (blue-blind)
#004B66
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3a22aa;
/* rgb */ color: rgb(58, 34, 170);
/* oklch */ color: oklch(38.9% 0.199 279.8);
Tailwind
colors: {
  custom: {
    50: '#8062c5',
    500: '#3a22aa',
    950: '#000000',
  },
}
SCSS
$custom: #3a22aa;
$custom-light: #8062c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a22aa",
  "rgb": {
    "r": 58,
    "g": 34,
    "b": 170
  },
  "hsl": {
    "h": 250.588,
    "s": 66.667,
    "l": 40
  },
  "oklch": {
    "l": 0.38901,
    "c": 0.19919,
    "h": 279.8
  },
  "luminance": 0.04946
}

Semantic roles & 50–950 ramp

primary
#3A22AA
secondary
#B4C662
accent
#EA3ECB
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3A22AA

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

Preview Lab → · Contrast checker → · Palette generator →

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