#3D22A2#3D22A2

#3D22A2 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.189 H 282.4°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#3D22A2
RGBrgb(61, 34, 162)
HSLhsl(253, 65%, 38%)
HSVhsv(253, 79%, 64%)
CMYKcmyk(62.3%, 79%, 0%, 36.5%)
CIE-LABlab(25.99, 47.03, -64.10)
CIE-LCHlch(25.99, 79.50, 306.27°)
OKLaboklab(38.31% 0.0408 -0.1849)
OKLCHoklch(38.31% 0.189 282.4)
XYZxyz(9.0160, 4.7442, 34.6160)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D22A2 #87A222
analogous
#2247A2 #3D22A2 #7D22A2
triadic
#3D22A2 #A23D22 #22A23D
tetradic
#3D22A2 #A22247 #87A222 #22A27D
square
#3D22A2 #A22247 #87A222 #22A27D
split-complementary
#3D22A2 #A27D22 #47A222
monochromatic
#170D3D #2A176F #3D22A2 #512ED3 #7B61DE

Accessibility & contrast

On white

10.77
#3D22A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#3D22A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D22A2
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D22A2#FFFFFF#000000##FFFFFF
##3D22A21.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A6
Deuteranopia (green-blind)
#0039A0
Tritanopia (blue-blind)
#004862
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3d22a2;
/* rgb */ color: rgb(61, 34, 162);
/* oklch */ color: oklch(38.3% 0.189 282.4);
Tailwind
colors: {
  custom: {
    50: '#8061bf',
    500: '#3d22a2',
    950: '#000000',
  },
}
SCSS
$custom: #3d22a2;
$custom-light: #8061bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3d22a2",
  "rgb": {
    "r": 61,
    "g": 34,
    "b": 162
  },
  "hsl": {
    "h": 252.656,
    "s": 65.306,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38307,
    "c": 0.18932,
    "h": 282.4
  },
  "luminance": 0.04745
}

Semantic roles & 50–950 ramp

primary
#3D22A2
secondary
#ADC35D
accent
#E840C5
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3D22A2

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

Preview Lab → · Contrast checker → · Palette generator →

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