#3218B4#3218B4

#3218B4 is a dark, highly saturated violet. Relative luminance 0.046; OKLCH L 38.4% C 0.220 H 276.0°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#3218B4
RGBrgb(50, 24, 180)
HSLhsl(250, 76%, 40%)
HSVhsv(250, 87%, 71%)
CMYKcmyk(72.2%, 86.7%, 0%, 29.4%)
CIE-LABlab(25.64, 55.59, -75.56)
CIE-LCHlch(25.64, 93.80, 306.34°)
OKLaboklab(38.43% 0.023 -0.2183)
OKLCHoklch(38.43% 0.22 276)
XYZxyz(9.8776, 4.6257, 43.5435)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3218B4 #9AB418
analogous
#184CB4 #3218B4 #8018B4
triadic
#3218B4 #B43218 #18B432
tetradic
#3218B4 #B4184C #9AB418 #18B480
square
#3218B4 #B4184C #9AB418 #18B480
split-complementary
#3218B4 #B48018 #4CB418
monochromatic
#140A48 #23117E #3218B4 #4627E2 #745DE9

Accessibility & contrast

On white

10.91
#3218B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#3218B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3218B4
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3218B4#FFFFFF#000000##FFFFFF
##3218B41.0010.911.9310.91
#FFFFFF10.911.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B8
Deuteranopia (green-blind)
#0036B1
Tritanopia (blue-blind)
#004D6A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3218b4;
/* rgb */ color: rgb(50, 24, 180);
/* oklch */ color: oklch(38.4% 0.220 276.0);
Tailwind
colors: {
  custom: {
    50: '#805dcc',
    500: '#3218b4',
    950: '#000000',
  },
}
SCSS
$custom: #3218b4;
$custom-light: #805dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#3218b4",
  "rgb": {
    "r": 50,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 250,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.38427,
    "c": 0.2195,
    "h": 276
  },
  "luminance": 0.04627
}

Semantic roles & 50–950 ramp

primary
#3218B4
secondary
#BACD5B
accent
#F335D3
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #3218B4

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

Preview Lab → · Contrast checker → · Palette generator →

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