#3218A1#3218A1

#3218A1 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.2% C 0.198 H 278.5°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#3218A1
RGBrgb(50, 24, 161)
HSLhsl(251, 74%, 36%)
HSVhsv(251, 85%, 63%)
CMYKcmyk(68.9%, 85.1%, 0%, 36.9%)
CIE-LABlab(23.35, 50.17, -67.89)
CIE-LCHlch(23.35, 84.42, 306.46°)
OKLaboklab(36.2% 0.0294 -0.1961)
OKLCHoklch(36.2% 0.198 278.5)
XYZxyz(8.0730, 3.9039, 34.0394)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3218A1 #87A118
analogous
#1843A1 #3218A1 #7718A1
triadic
#3218A1 #A13218 #18A132
tetradic
#3218A1 #A11843 #87A118 #18A177
square
#3218A1 #A11843 #87A118 #18A177
split-complementary
#3218A1 #A17718 #43A118
monochromatic
#110836 #21106C #3218A1 #4320D6 #6B4FE5

Accessibility & contrast

On white

11.79
#3218A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#3218A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3218A1
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3218A1#FFFFFF#000000##FFFFFF
##3218A11.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA5
Deuteranopia (green-blind)
#00329F
Tritanopia (blue-blind)
#00445F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3218a1;
/* rgb */ color: rgb(50, 24, 161);
/* oklch */ color: oklch(36.2% 0.198 278.5);
Tailwind
colors: {
  custom: {
    50: '#7c5bbe',
    500: '#3218a1',
    950: '#000000',
  },
}
SCSS
$custom: #3218a1;
$custom-light: #7c5bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#3218a1",
  "rgb": {
    "r": 50,
    "g": 24,
    "b": 161
  },
  "hsl": {
    "h": 251.387,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36203,
    "c": 0.19825,
    "h": 278.5
  },
  "luminance": 0.03905
}

Semantic roles & 50–950 ramp

primary
#3218A1
secondary
#B0C74E
accent
#F137CD
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #3218A1

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

Preview Lab → · Contrast checker → · Palette generator →

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