#3A22A7#3A22A7

#3A22A7 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.196 H 280.3°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#3A22A7
RGBrgb(58, 34, 167)
HSLhsl(251, 66%, 39%)
HSVhsv(251, 80%, 65%)
CMYKcmyk(65.3%, 79.6%, 0%, 34.5%)
CIE-LABlab(26.25, 48.19, -66.71)
CIE-LCHlch(26.25, 82.29, 305.84°)
OKLaboklab(38.58% 0.0348 -0.1926)
OKLCHoklch(38.58% 0.196 280.3)
XYZxyz(9.2898, 4.8329, 36.9950)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A22A7 #8FA722
analogous
#224DA7 #3A22A7 #7D22A7
triadic
#3A22A7 #A73A22 #22A73A
tetradic
#3A22A7 #A7224D #8FA722 #22A77D
square
#3A22A7 #A7224D #8FA722 #22A77D
split-complementary
#3A22A7 #A77D22 #4DA722
monochromatic
#170D41 #281874 #3A22A7 #4F31D5 #7A64DF

Accessibility & contrast

On white

10.68
#3A22A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#3A22A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A22A7
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A22A7#FFFFFF#000000##FFFFFF
##3A22A71.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AB
Deuteranopia (green-blind)
#0039A5
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3a22a7;
/* rgb */ color: rgb(58, 34, 167);
/* oklch */ color: oklch(38.6% 0.196 280.3);
Tailwind
colors: {
  custom: {
    50: '#7f61c2',
    500: '#3a22a7',
    950: '#000000',
  },
}
SCSS
$custom: #3a22a7;
$custom-light: #7f61c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3a22a7",
  "rgb": {
    "r": 58,
    "g": 34,
    "b": 167
  },
  "hsl": {
    "h": 250.827,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.3858,
    "c": 0.19569,
    "h": 280.3
  },
  "luminance": 0.04834
}

Semantic roles & 50–950 ramp

primary
#3A22A7
secondary
#B3C560
accent
#E93FCA
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3A22A7

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

Preview Lab → · Contrast checker → · Palette generator →

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