#35218E#35218E

#35218E is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.167 H 282.0°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#35218E
RGBrgb(53, 33, 142)
HSLhsl(251, 62%, 34%)
HSVhsv(251, 77%, 56%)
CMYKcmyk(62.7%, 76.8%, 0%, 44.3%)
CIE-LABlab(22.99, 40.45, -56.79)
CIE-LCHlch(22.99, 69.72, 305.47°)
OKLaboklab(35.4% 0.0349 -0.1638)
OKLCHoklch(35.4% 0.167 282)
XYZxyz(6.8930, 3.7971, 25.9556)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#35218E #7A8E21
analogous
#21448E #35218E #6C218E
triadic
#35218E #8E3521 #218E35
tetradic
#35218E #8E2144 #7A8E21 #218E6C
square
#35218E #8E2144 #7A8E21 #218E6C
split-complementary
#35218E #8E6C21 #448E21
monochromatic
#100A2B #22155C #35218E #482DC0 #6B52D7

Accessibility & contrast

On white

11.93
#35218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#35218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #35218E
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##35218E#FFFFFF#000000##FFFFFF
##35218E1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#00338C
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #35218e;
/* rgb */ color: rgb(53, 33, 142);
/* oklch */ color: oklch(35.4% 0.167 282.0);
Tailwind
colors: {
  custom: {
    50: '#785fb0',
    500: '#35218e',
    950: '#000000',
  },
}
SCSS
$custom: #35218e;
$custom-light: #785fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#35218e",
  "rgb": {
    "r": 53,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 251.009,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35397,
    "c": 0.16744,
    "h": 282
  },
  "luminance": 0.03798
}

Semantic roles & 50–950 ramp

primary
#35218E
secondary
#A7BA50
accent
#E542C7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #35218E

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

Preview Lab → · Contrast checker → · Palette generator →

#35218E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva