#3D226F#3D226F

#3D226F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.4% C 0.126 H 294.7°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#3D226F
RGBrgb(61, 34, 111)
HSLhsl(261, 53%, 28%)
HSVhsv(261, 69%, 44%)
CMYKcmyk(45%, 69.4%, 0%, 56.5%)
CIE-LABlab(21.15, 31.69, -40.13)
CIE-LCHlch(21.15, 51.13, 308.30°)
OKLaboklab(33.4% 0.0528 -0.1146)
OKLCHoklch(33.4% 0.126 294.7)
XYZxyz(5.3650, 3.2837, 15.3870)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D226F #546F22
analogous
#222D6F #3D226F #63226F
triadic
#3D226F #6F3D22 #226F3D
tetradic
#3D226F #6F222D #546F22 #226F63
square
#3D226F #6F222D #546F22 #226F63
split-complementary
#3D226F #6F6322 #2D6F22
monochromatic
#0D0717 #231440 #3D226F #57309E #7245C6

Accessibility & contrast

On white

12.68
#3D226F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#3D226F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D226F
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D226F#FFFFFF#000000##FFFFFF
##3D226F1.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#00326D
Tritanopia (blue-blind)
#2F3445
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3d226f;
/* rgb */ color: rgb(61, 34, 111);
/* oklch */ color: oklch(33.4% 0.126 294.7);
Tailwind
colors: {
  custom: {
    50: '#775f99',
    500: '#3d226f',
    950: '#000000',
  },
}
SCSS
$custom: #3d226f;
$custom-light: #775f99;
$custom-dark: #000000;
JSON
{
  "hex": "#3d226f",
  "rgb": {
    "r": 61,
    "g": 34,
    "b": 111
  },
  "hsl": {
    "h": 261.039,
    "s": 53.103,
    "l": 28.431
  },
  "oklch": {
    "l": 0.334,
    "c": 0.12621,
    "h": 294.7
  },
  "luminance": 0.03284
}

Semantic roles & 50–950 ramp

primary
#3D226F
secondary
#84A24A
accent
#DD4BAA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #3D226F

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

Preview Lab → · Contrast checker → · Palette generator →

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