#3D226C#3D226C

#3D226C is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.1% C 0.122 H 295.8°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#3D226C
RGBrgb(61, 34, 108)
HSLhsl(262, 52%, 28%)
HSVhsv(262, 69%, 42%)
CMYKcmyk(43.5%, 68.5%, 0%, 57.6%)
CIE-LABlab(20.90, 30.79, -38.59)
CIE-LCHlch(20.90, 49.37, 308.59°)
OKLaboklab(33.15% 0.0532 -0.1101)
OKLCHoklch(33.15% 0.122 295.8)
XYZxyz(5.2026, 3.2188, 14.5316)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D226C #516C22
analogous
#222C6C #3D226C #62226C
triadic
#3D226C #6C3D22 #226C3D
tetradic
#3D226C #6C222C #516C22 #226C62
square
#3D226C #6C222C #516C22 #226C62
split-complementary
#3D226C #6C6222 #2C6C22
monochromatic
#0D0717 #23133D #3D226C #57319B #7344C4

Accessibility & contrast

On white

12.78
#3D226C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#3D226C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D226C
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D226C#FFFFFF#000000##FFFFFF
##3D226C1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336E
Deuteranopia (green-blind)
#00316A
Tritanopia (blue-blind)
#313343
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3d226c;
/* rgb */ color: rgb(61, 34, 108);
/* oklch */ color: oklch(33.1% 0.122 295.8);
Tailwind
colors: {
  custom: {
    50: '#775f97',
    500: '#3d226c',
    950: '#000000',
  },
}
SCSS
$custom: #3d226c;
$custom-light: #775f97;
$custom-dark: #000000;
JSON
{
  "hex": "#3d226c",
  "rgb": {
    "r": 61,
    "g": 34,
    "b": 108
  },
  "hsl": {
    "h": 261.892,
    "s": 52.113,
    "l": 27.843
  },
  "oklch": {
    "l": 0.33145,
    "c": 0.12228,
    "h": 295.8
  },
  "luminance": 0.03219
}

Semantic roles & 50–950 ramp

primary
#3D226C
secondary
#80A04A
accent
#DC4CA7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3D226C

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

Preview Lab → · Contrast checker → · Palette generator →

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