#3D218F#3D218F

#3D218F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.168 H 286.2°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#3D218F
RGBrgb(61, 33, 143)
HSLhsl(255, 63%, 35%)
HSVhsv(255, 77%, 56%)
CMYKcmyk(57.3%, 76.9%, 0%, 43.9%)
CIE-LABlab(23.88, 41.85, -55.92)
CIE-LCHlch(23.88, 69.85, 306.81°)
OKLaboklab(36.24% 0.0469 -0.161)
OKLCHoklch(36.24% 0.168 286.2)
XYZxyz(7.4248, 4.0626, 26.3742)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D218F #738F21
analogous
#213C8F #3D218F #74218F
triadic
#3D218F #8F3D21 #218F3D
tetradic
#3D218F #8F213C #738F21 #218F74
square
#3D218F #8F213C #738F21 #218F74
split-complementary
#3D218F #8F7421 #3C8F21
monochromatic
#130A2C #28165D #3D218F #522CC1 #7553D7

Accessibility & contrast

On white

11.59
#3D218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#3D218F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D218F
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D218F#FFFFFF#000000##FFFFFF
##3D218F1.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00368D
Tritanopia (blue-blind)
#174057
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3d218f;
/* rgb */ color: rgb(61, 33, 143);
/* oklch */ color: oklch(36.2% 0.168 286.2);
Tailwind
colors: {
  custom: {
    50: '#7c60b1',
    500: '#3d218f',
    950: '#000000',
  },
}
SCSS
$custom: #3d218f;
$custom-light: #7c60b1;
$custom-dark: #000000;
JSON
{
  "hex": "#3d218f",
  "rgb": {
    "r": 61,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 255.273,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36244,
    "c": 0.16766,
    "h": 286.2
  },
  "luminance": 0.04063
}

Semantic roles & 50–950 ramp

primary
#3D218F
secondary
#A0BB51
accent
#E642BC
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3D218F

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

Preview Lab → · Contrast checker → · Palette generator →

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