#3D22A7#3D22A7

#3D22A7 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.195 H 281.6°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#3D22A7
RGBrgb(61, 34, 167)
HSLhsl(252, 66%, 39%)
HSVhsv(252, 80%, 65%)
CMYKcmyk(63.5%, 79.6%, 0%, 34.5%)
CIE-LABlab(26.52, 48.51, -66.26)
CIE-LCHlch(26.52, 82.12, 306.21°)
OKLaboklab(38.83% 0.0393 -0.1912)
OKLCHoklch(38.83% 0.195 281.6)
XYZxyz(9.4694, 4.9255, 37.0034)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D22A7 #8CA722
analogous
#224AA7 #3D22A7 #7F22A7
triadic
#3D22A7 #A73D22 #22A73D
tetradic
#3D22A7 #A7224A #8CA722 #22A77F
square
#3D22A7 #A7224A #8CA722 #22A77F
split-complementary
#3D22A7 #A77F22 #4AA722
monochromatic
#180D41 #2A1874 #3D22A7 #5231D5 #7D64DF

Accessibility & contrast

On white

10.58
#3D22A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D22A7
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D22A7#FFFFFF#000000##FFFFFF
##3D22A71.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AB
Deuteranopia (green-blind)
#003AA5
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3d22a7;
/* rgb */ color: rgb(61, 34, 167);
/* oklch */ color: oklch(38.8% 0.195 281.6);
Tailwind
colors: {
  custom: {
    50: '#8162c2',
    500: '#3d22a7',
    950: '#000000',
  },
}
SCSS
$custom: #3d22a7;
$custom-light: #8162c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3d22a7",
  "rgb": {
    "r": 61,
    "g": 34,
    "b": 167
  },
  "hsl": {
    "h": 252.18,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38832,
    "c": 0.19517,
    "h": 281.6
  },
  "luminance": 0.04926
}

Semantic roles & 50–950 ramp

primary
#3D22A7
secondary
#B0C560
accent
#E93FC7
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3D22A7

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

Preview Lab → · Contrast checker → · Palette generator →

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