#3C218E#3C218E

#3C218E is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.167 H 285.9°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#3C218E
RGBrgb(60, 33, 142)
HSLhsl(255, 62%, 34%)
HSVhsv(255, 77%, 56%)
CMYKcmyk(57.7%, 76.8%, 0%, 44.3%)
CIE-LABlab(23.67, 41.41, -55.63)
CIE-LCHlch(23.67, 69.36, 306.66°)
OKLaboklab(36.05% 0.0456 -0.1602)
OKLCHoklch(36.05% 0.167 285.9)
XYZxyz(7.2883, 4.0009, 25.9742)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C218E #738E21
analogous
#213D8E #3C218E #73218E
triadic
#3C218E #8E3C21 #218E3C
tetradic
#3C218E #8E213D #738E21 #218E73
square
#3C218E #8E213D #738E21 #218E73
split-complementary
#3C218E #8E7321 #3D8E21
monochromatic
#120A2B #27155C #3C218E #512DC0 #7352D7

Accessibility & contrast

On white

11.67
#3C218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#3C218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C218E
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C218E#FFFFFF#000000##FFFFFF
##3C218E1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#00358C
Tritanopia (blue-blind)
#144056
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3c218e;
/* rgb */ color: rgb(60, 33, 142);
/* oklch */ color: oklch(36.0% 0.167 285.9);
Tailwind
colors: {
  custom: {
    50: '#7c60b0',
    500: '#3c218e',
    950: '#000000',
  },
}
SCSS
$custom: #3c218e;
$custom-light: #7c60b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3c218e",
  "rgb": {
    "r": 60,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 254.862,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36046,
    "c": 0.16654,
    "h": 285.9
  },
  "luminance": 0.04001
}

Semantic roles & 50–950 ramp

primary
#3C218E
secondary
#A0BA50
accent
#E542BD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #3C218E

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

Preview Lab → · Contrast checker → · Palette generator →

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