#3D218E#3D218E

#3D218E is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.166 H 286.5°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#3D218E
RGBrgb(61, 33, 142)
HSLhsl(255, 62%, 34%)
HSVhsv(255, 77%, 56%)
CMYKcmyk(57%, 76.8%, 0%, 44.3%)
CIE-LABlab(23.78, 41.55, -55.46)
CIE-LCHlch(23.78, 69.30, 306.84°)
OKLaboklab(36.14% 0.0472 -0.1596)
OKLCHoklch(36.14% 0.166 286.5)
XYZxyz(7.3493, 4.0324, 25.9770)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D218E #728E21
analogous
#213C8E #3D218E #74218E
triadic
#3D218E #8E3D21 #218E3D
tetradic
#3D218E #8E213C #728E21 #218E74
square
#3D218E #8E213C #728E21 #218E74
split-complementary
#3D218E #8E7421 #3C8E21
monochromatic
#120A2B #28155C #3D218E #522DC0 #7552D7

Accessibility & contrast

On white

11.62
#3D218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D218E
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D218E#FFFFFF#000000##FFFFFF
##3D218E1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#00358C
Tritanopia (blue-blind)
#183F56
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3d218e;
/* rgb */ color: rgb(61, 33, 142);
/* oklch */ color: oklch(36.1% 0.166 286.5);
Tailwind
colors: {
  custom: {
    50: '#7c60b0',
    500: '#3d218e',
    950: '#000000',
  },
}
SCSS
$custom: #3d218e;
$custom-light: #7c60b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3d218e",
  "rgb": {
    "r": 61,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 255.413,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36144,
    "c": 0.16645,
    "h": 286.5
  },
  "luminance": 0.04033
}

Semantic roles & 50–950 ramp

primary
#3D218E
secondary
#9FBA50
accent
#E542BC
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3D218E

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

Preview Lab → · Contrast checker → · Palette generator →

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