#3D22A4#3D22A4

#3D22A4 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.192 H 282.1°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#3D22A4
RGBrgb(61, 34, 164)
HSLhsl(252, 66%, 39%)
HSVhsv(252, 79%, 64%)
CMYKcmyk(62.8%, 79.3%, 0%, 35.7%)
CIE-LABlab(26.20, 47.62, -64.97)
CIE-LCHlch(26.20, 80.55, 306.24°)
OKLaboklab(38.52% 0.0402 -0.1874)
OKLCHoklch(38.52% 0.192 282.1)
XYZxyz(9.1952, 4.8158, 35.5598)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D22A4 #89A422
analogous
#2248A4 #3D22A4 #7E22A4
triadic
#3D22A4 #A43D22 #22A43D
tetradic
#3D22A4 #A42248 #89A422 #22A47E
square
#3D22A4 #A42248 #89A422 #22A47E
split-complementary
#3D22A4 #A47E22 #48A422
monochromatic
#170D3F #2A1771 #3D22A4 #512FD4 #7C62DE

Accessibility & contrast

On white

10.70
#3D22A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#3D22A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D22A4
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D22A4#FFFFFF#000000##FFFFFF
##3D22A41.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A8
Deuteranopia (green-blind)
#0039A2
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3d22a4;
/* rgb */ color: rgb(61, 34, 164);
/* oklch */ color: oklch(38.5% 0.192 282.1);
Tailwind
colors: {
  custom: {
    50: '#8061c0',
    500: '#3d22a4',
    950: '#000000',
  },
}
SCSS
$custom: #3d22a4;
$custom-light: #8061c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3d22a4",
  "rgb": {
    "r": 61,
    "g": 34,
    "b": 164
  },
  "hsl": {
    "h": 252.462,
    "s": 65.657,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38517,
    "c": 0.19167,
    "h": 282.1
  },
  "luminance": 0.04816
}

Semantic roles & 50–950 ramp

primary
#3D22A4
secondary
#AEC45E
accent
#E93FC5
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #3D22A4

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

Preview Lab → · Contrast checker → · Palette generator →

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