#3D226A#3D226A

#3D226A is a dark, moderate violet. Relative luminance 0.032; OKLCH L 33.0% C 0.120 H 296.5°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#3D226A
RGBrgb(61, 34, 106)
HSLhsl(263, 51%, 27%)
HSVhsv(263, 68%, 42%)
CMYKcmyk(42.5%, 67.9%, 0%, 58.4%)
CIE-LABlab(20.74, 30.20, -37.55)
CIE-LCHlch(20.74, 48.19, 308.81°)
OKLaboklab(32.98% 0.0534 -0.1071)
OKLCHoklch(32.98% 0.12 296.5)
XYZxyz(5.0973, 3.1767, 13.9775)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D226A #4F6A22
analogous
#222B6A #3D226A #61226A
triadic
#3D226A #6A3D22 #226A3D
tetradic
#3D226A #6A222B #4F6A22 #226A61
square
#3D226A #6A222B #4F6A22 #226A61
split-complementary
#3D226A #6A6122 #2B6A22
monochromatic
#0D0717 #22133C #3D226A #583198 #7344C3

Accessibility & contrast

On white

12.84
#3D226A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D226A
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D226A#FFFFFF#000000##FFFFFF
##3D226A1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326C
Deuteranopia (green-blind)
#003168
Tritanopia (blue-blind)
#323342
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3d226a;
/* rgb */ color: rgb(61, 34, 106);
/* oklch */ color: oklch(33.0% 0.120 296.5);
Tailwind
colors: {
  custom: {
    50: '#775f95',
    500: '#3d226a',
    950: '#000000',
  },
}
SCSS
$custom: #3d226a;
$custom-light: #775f95;
$custom-dark: #000000;
JSON
{
  "hex": "#3d226a",
  "rgb": {
    "r": 61,
    "g": 34,
    "b": 106
  },
  "hsl": {
    "h": 262.5,
    "s": 51.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32977,
    "c": 0.11963,
    "h": 296.5
  },
  "luminance": 0.03177
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3D226A

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

Preview Lab → · Contrast checker → · Palette generator →

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