#3218AE#3218AE

#3218AE is a dark, highly saturated violet. Relative luminance 0.044; OKLCH L 37.7% C 0.213 H 276.7°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#3218AE
RGBrgb(50, 24, 174)
HSLhsl(250, 76%, 39%)
HSVhsv(250, 86%, 68%)
CMYKcmyk(71.3%, 86.2%, 0%, 31.8%)
CIE-LABlab(24.91, 53.90, -73.17)
CIE-LCHlch(24.91, 90.88, 306.37°)
OKLaboklab(37.72% 0.025 -0.2114)
OKLCHoklch(37.72% 0.213 276.7)
XYZxyz(9.2795, 4.3865, 40.3938)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3218AE #94AE18
analogous
#1849AE #3218AE #7D18AE
triadic
#3218AE #AE3218 #18AE32
tetradic
#3218AE #AE1849 #94AE18 #18AE7D
square
#3218AE #AE1849 #94AE18 #18AE7D
split-complementary
#3218AE #AE7D18 #49AE18
monochromatic
#130942 #231178 #3218AE #4423E1 #7158E8

Accessibility & contrast

On white

11.19
#3218AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#3218AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3218AE
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3218AE#FFFFFF#000000##FFFFFF
##3218AE1.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041B2
Deuteranopia (green-blind)
#0035AC
Tritanopia (blue-blind)
#004A67
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3218ae;
/* rgb */ color: rgb(50, 24, 174);
/* oklch */ color: oklch(37.7% 0.213 276.7);
Tailwind
colors: {
  custom: {
    50: '#7e5cc8',
    500: '#3218ae',
    950: '#000000',
  },
}
SCSS
$custom: #3218ae;
$custom-light: #7e5cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#3218ae",
  "rgb": {
    "r": 50,
    "g": 24,
    "b": 174
  },
  "hsl": {
    "h": 250.4,
    "s": 75.758,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37719,
    "c": 0.21285,
    "h": 276.7
  },
  "luminance": 0.04387
}

Semantic roles & 50–950 ramp

primary
#3218AE
secondary
#B7CB57
accent
#F235D2
background
#F8F5FC
surface
#F0E9F8
border
#CBC5D1
text
#0C0413
muted
#7D7982

Preview Lab

Preview with #3218AE

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

Preview Lab → · Contrast checker → · Palette generator →

#3218AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva