#3218A8#3218A8

#3218A8 is a dark, highly saturated violet. Relative luminance 0.042; OKLCH L 37.0% C 0.206 H 277.5°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#3218A8
RGBrgb(50, 24, 168)
HSLhsl(251, 75%, 38%)
HSVhsv(251, 86%, 66%)
CMYKcmyk(70.2%, 85.7%, 0%, 34.1%)
CIE-LABlab(24.19, 52.19, -70.76)
CIE-LCHlch(24.19, 87.92, 306.41°)
OKLaboklab(37.02% 0.027 -0.2044)
OKLCHoklch(37.02% 0.206 277.5)
XYZxyz(8.7076, 4.1577, 37.3818)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3218A8 #8EA818
analogous
#1846A8 #3218A8 #7A18A8
triadic
#3218A8 #A83218 #18A832
tetradic
#3218A8 #A81846 #8EA818 #18A87A
square
#3218A8 #A81846 #8EA818 #18A87A
split-complementary
#3218A8 #A87A18 #46A818
monochromatic
#12093D #221072 #3218A8 #4220DE #6E54E7

Accessibility & contrast

On white

11.46
#3218A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#3218A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3218A8
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3218A8#FFFFFF#000000##FFFFFF
##3218A81.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FAC
Deuteranopia (green-blind)
#0033A6
Tritanopia (blue-blind)
#004763
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3218a8;
/* rgb */ color: rgb(50, 24, 168);
/* oklch */ color: oklch(37.0% 0.206 277.5);
Tailwind
colors: {
  custom: {
    50: '#7d5cc3',
    500: '#3218a8',
    950: '#000000',
  },
}
SCSS
$custom: #3218a8;
$custom-light: #7d5cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#3218a8",
  "rgb": {
    "r": 50,
    "g": 24,
    "b": 168
  },
  "hsl": {
    "h": 250.833,
    "s": 75,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37017,
    "c": 0.20616,
    "h": 277.5
  },
  "luminance": 0.04159
}

Semantic roles & 50–950 ramp

primary
#3218A8
secondary
#B4C953
accent
#F236D0
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0413
muted
#7C7982

Preview Lab

Preview with #3218A8

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

Preview Lab → · Contrast checker → · Palette generator →

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