#3D227C#3D227C

#3D227C is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.6% C 0.143 H 290.7°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#3D227C
RGBrgb(61, 34, 124)
HSLhsl(258, 57%, 31%)
HSVhsv(258, 73%, 49%)
CMYKcmyk(50.8%, 72.6%, 0%, 51.4%)
CIE-LABlab(22.27, 35.59, -46.62)
CIE-LCHlch(22.27, 58.66, 307.36°)
OKLaboklab(34.56% 0.0506 -0.1337)
OKLCHoklch(34.56% 0.143 290.7)
XYZxyz(6.1336, 3.5912, 19.4349)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D227C #617C22
analogous
#22347C #3D227C #6A227C
triadic
#3D227C #7C3D22 #227C3D
tetradic
#3D227C #7C2234 #617C22 #227C6A
square
#3D227C #7C2234 #617C22 #227C6A
split-complementary
#3D227C #7C6A22 #347C22
monochromatic
#0E081C #25154C #3D227C #552FAC #724BCE

Accessibility & contrast

On white

12.22
#3D227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3D227C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D227C
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D227C#FFFFFF#000000##FFFFFF
##3D227C1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#00337A
Tritanopia (blue-blind)
#28394C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3d227c;
/* rgb */ color: rgb(61, 34, 124);
/* oklch */ color: oklch(34.6% 0.143 290.7);
Tailwind
colors: {
  custom: {
    50: '#795fa3',
    500: '#3d227c',
    950: '#000000',
  },
}
SCSS
$custom: #3d227c;
$custom-light: #795fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#3d227c",
  "rgb": {
    "r": 61,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 258,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34556,
    "c": 0.14297,
    "h": 290.7
  },
  "luminance": 0.03591
}

Semantic roles & 50–950 ramp

primary
#3D227C
secondary
#91AF4B
accent
#E048B2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3D227C

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

Preview Lab → · Contrast checker → · Palette generator →

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