#3A22B1#3A22B1

#3A22B1 is a dark, highly saturated violet. Relative luminance 0.052; OKLCH L 39.7% C 0.207 H 278.9°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#3A22B1
RGBrgb(58, 34, 177)
HSLhsl(250, 68%, 41%)
HSVhsv(250, 81%, 69%)
CMYKcmyk(67.2%, 80.8%, 0%, 30.6%)
CIE-LABlab(27.34, 51.17, -70.92)
CIE-LCHlch(27.34, 87.45, 305.81°)
OKLaboklab(39.66% 0.0319 -0.2048)
OKLCHoklch(39.66% 0.207 278.9)
XYZxyz(10.2502, 5.2171, 42.0533)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A22B1 #99B122
analogous
#2252B1 #3A22B1 #8222B1
triadic
#3A22B1 #B13A22 #22B13A
tetradic
#3A22B1 #B12252 #99B122 #22B182
square
#3A22B1 #B12252 #99B122 #22B182
split-complementary
#3A22B1 #B18222 #52B122
monochromatic
#180E4A #29187E #3A22B1 #5338D9 #7F6BE3

Accessibility & contrast

On white

10.28
#3A22B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#3A22B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A22B1
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A22B1#FFFFFF#000000##FFFFFF
##3A22B11.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B5
Deuteranopia (green-blind)
#003BAF
Tritanopia (blue-blind)
#004E6A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3a22b1;
/* rgb */ color: rgb(58, 34, 177);
/* oklch */ color: oklch(39.7% 0.207 278.9);
Tailwind
colors: {
  custom: {
    50: '#8262ca',
    500: '#3a22b1',
    950: '#000000',
  },
}
SCSS
$custom: #3a22b1;
$custom-light: #8262ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3a22b1",
  "rgb": {
    "r": 58,
    "g": 34,
    "b": 177
  },
  "hsl": {
    "h": 250.07,
    "s": 67.773,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39659,
    "c": 0.20729,
    "h": 278.9
  },
  "luminance": 0.05218
}

Semantic roles & 50–950 ramp

primary
#3A22B1
secondary
#B8C966
accent
#EB3DCE
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3A22B1

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

Preview Lab → · Contrast checker → · Palette generator →

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