#3D22A6#3D22A6

#3D22A6 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.194 H 281.8°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#3D22A6
RGBrgb(61, 34, 166)
HSLhsl(252, 66%, 39%)
HSVhsv(252, 80%, 65%)
CMYKcmyk(63.3%, 79.5%, 0%, 34.9%)
CIE-LABlab(26.41, 48.21, -65.83)
CIE-LCHlch(26.41, 81.60, 306.22°)
OKLaboklab(38.73% 0.0396 -0.1899)
OKLCHoklch(38.73% 0.194 281.8)
XYZxyz(9.3773, 4.8886, 36.5185)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D22A6 #8BA622
analogous
#2249A6 #3D22A6 #7F22A6
triadic
#3D22A6 #A63D22 #22A63D
tetradic
#3D22A6 #A62249 #8BA622 #22A67F
square
#3D22A6 #A62249 #8BA622 #22A67F
split-complementary
#3D22A6 #A67F22 #49A622
monochromatic
#180D40 #2A1873 #3D22A6 #5230D5 #7D63DF

Accessibility & contrast

On white

10.62
#3D22A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#3D22A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D22A6
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D22A6#FFFFFF#000000##FFFFFF
##3D22A61.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AA
Deuteranopia (green-blind)
#003AA4
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3d22a6;
/* rgb */ color: rgb(61, 34, 166);
/* oklch */ color: oklch(38.7% 0.194 281.8);
Tailwind
colors: {
  custom: {
    50: '#8162c2',
    500: '#3d22a6',
    950: '#000000',
  },
}
SCSS
$custom: #3d22a6;
$custom-light: #8162c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3d22a6",
  "rgb": {
    "r": 61,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 252.273,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38727,
    "c": 0.194,
    "h": 281.8
  },
  "luminance": 0.04889
}

Semantic roles & 50–950 ramp

primary
#3D22A6
secondary
#B0C45F
accent
#E93FC6
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3D22A6

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

Preview Lab → · Contrast checker → · Palette generator →

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