#3D22A5#3D22A5

#3D22A5 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.193 H 281.9°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#3D22A5
RGBrgb(61, 34, 165)
HSLhsl(252, 66%, 39%)
HSVhsv(252, 79%, 65%)
CMYKcmyk(63%, 79.4%, 0%, 35.3%)
CIE-LABlab(26.31, 47.92, -65.40)
CIE-LCHlch(26.31, 81.07, 306.23°)
OKLaboklab(38.62% 0.0399 -0.1887)
OKLCHoklch(38.62% 0.193 281.9)
XYZxyz(9.2859, 4.8521, 36.0372)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D22A5 #8AA522
analogous
#2249A5 #3D22A5 #7F22A5
triadic
#3D22A5 #A53D22 #22A53D
tetradic
#3D22A5 #A52249 #8AA522 #22A57F
square
#3D22A5 #A52249 #8AA522 #22A57F
split-complementary
#3D22A5 #A57F22 #49A522
monochromatic
#170D40 #2A1872 #3D22A5 #5230D4 #7C63DF

Accessibility & contrast

On white

10.66
#3D22A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#3D22A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D22A5
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D22A5#FFFFFF#000000##FFFFFF
##3D22A51.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A9
Deuteranopia (green-blind)
#003AA3
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3d22a5;
/* rgb */ color: rgb(61, 34, 165);
/* oklch */ color: oklch(38.6% 0.193 281.9);
Tailwind
colors: {
  custom: {
    50: '#8062c1',
    500: '#3d22a5',
    950: '#000000',
  },
}
SCSS
$custom: #3d22a5;
$custom-light: #8062c1;
$custom-dark: #000000;
JSON
{
  "hex": "#3d22a5",
  "rgb": {
    "r": 61,
    "g": 34,
    "b": 165
  },
  "hsl": {
    "h": 252.366,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38622,
    "c": 0.19284,
    "h": 281.9
  },
  "luminance": 0.04853
}

Semantic roles & 50–950 ramp

primary
#3D22A5
secondary
#AFC45F
accent
#E93FC6
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #3D22A5

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

Preview Lab → · Contrast checker → · Palette generator →

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