#3D226B#3D226B

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

Color values

HEX#3D226B
RGBrgb(61, 34, 107)
HSLhsl(262, 52%, 28%)
HSVhsv(262, 68%, 42%)
CMYKcmyk(43%, 68.2%, 0%, 58%)
CIE-LABlab(20.82, 30.50, -38.07)
CIE-LCHlch(20.82, 48.78, 308.70°)
OKLaboklab(33.06% 0.0533 -0.1086)
OKLCHoklch(33.06% 0.121 296.1)
XYZxyz(5.1496, 3.1976, 14.2529)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D226B #506B22
analogous
#222B6B #3D226B #62226B
triadic
#3D226B #6B3D22 #226B3D
tetradic
#3D226B #6B222B #506B22 #226B62
square
#3D226B #6B222B #506B22 #226B62
split-complementary
#3D226B #6B6222 #2B6B22
monochromatic
#0D0717 #23133D #3D226B #573199 #7344C4

Accessibility & contrast

On white

12.81
#3D226B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D226B
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D226B#FFFFFF#000000##FFFFFF
##3D226B1.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336D
Deuteranopia (green-blind)
#003169
Tritanopia (blue-blind)
#313343
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3d226b;
/* rgb */ color: rgb(61, 34, 107);
/* oklch */ color: oklch(33.1% 0.121 296.1);
Tailwind
colors: {
  custom: {
    50: '#775f96',
    500: '#3d226b',
    950: '#000000',
  },
}
SCSS
$custom: #3d226b;
$custom-light: #775f96;
$custom-dark: #000000;
JSON
{
  "hex": "#3d226b",
  "rgb": {
    "r": 61,
    "g": 34,
    "b": 107
  },
  "hsl": {
    "h": 262.192,
    "s": 51.773,
    "l": 27.647
  },
  "oklch": {
    "l": 0.33061,
    "c": 0.12095,
    "h": 296.1
  },
  "luminance": 0.03198
}

Semantic roles & 50–950 ramp

primary
#3D226B
secondary
#7F9F4A
accent
#DB4DA6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3D226B

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

Preview Lab → · Contrast checker → · Palette generator →

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