#3218A0#3218A0

#3218A0 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.197 H 278.7°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#3218A0
RGBrgb(50, 24, 160)
HSLhsl(251, 74%, 36%)
HSVhsv(251, 85%, 63%)
CMYKcmyk(68.8%, 85%, 0%, 37.3%)
CIE-LABlab(23.23, 49.88, -67.48)
CIE-LCHlch(23.23, 83.91, 306.47°)
OKLaboklab(36.09% 0.0297 -0.1949)
OKLCHoklch(36.09% 0.197 278.7)
XYZxyz(7.9852, 3.8688, 33.5768)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3218A0 #86A018
analogous
#1842A0 #3218A0 #7618A0
triadic
#3218A0 #A03218 #18A032
tetradic
#3218A0 #A01842 #86A018 #18A076
square
#3218A0 #A01842 #86A018 #18A076
split-complementary
#3218A0 #A07618 #42A018
monochromatic
#110836 #21106B #3218A0 #4320D5 #6B4EE4

Accessibility & contrast

On white

11.84
#3218A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#3218A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3218A0
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3218A0#FFFFFF#000000##FFFFFF
##3218A01.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA4
Deuteranopia (green-blind)
#00329E
Tritanopia (blue-blind)
#00445F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3218a0;
/* rgb */ color: rgb(50, 24, 160);
/* oklch */ color: oklch(36.1% 0.197 278.7);
Tailwind
colors: {
  custom: {
    50: '#7b5bbd',
    500: '#3218a0',
    950: '#000000',
  },
}
SCSS
$custom: #3218a0;
$custom-light: #7b5bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#3218a0",
  "rgb": {
    "r": 50,
    "g": 24,
    "b": 160
  },
  "hsl": {
    "h": 251.471,
    "s": 73.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36088,
    "c": 0.19711,
    "h": 278.7
  },
  "luminance": 0.03869
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3218A0

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

Preview Lab → · Contrast checker → · Palette generator →

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