#35218C#35218C

#35218C is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.165 H 282.4°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#35218C
RGBrgb(53, 33, 140)
HSLhsl(251, 62%, 34%)
HSVhsv(251, 76%, 55%)
CMYKcmyk(62.1%, 76.4%, 0%, 45.1%)
CIE-LABlab(22.78, 39.83, -55.88)
CIE-LCHlch(22.78, 68.62, 305.48°)
OKLaboklab(35.19% 0.0354 -0.1611)
OKLCHoklch(35.19% 0.165 282.4)
XYZxyz(6.7442, 3.7376, 25.1719)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#35218C #788C21
analogous
#21438C #35218C #6B218C
triadic
#35218C #8C3521 #218C35
tetradic
#35218C #8C2143 #788C21 #218C6B
square
#35218C #8C2143 #788C21 #218C6B
split-complementary
#35218C #8C6B21 #438C21
monochromatic
#100A29 #22155A #35218C #482DBE #6A51D6

Accessibility & contrast

On white

12.02
#35218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#35218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #35218C
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##35218C#FFFFFF#000000##FFFFFF
##35218C1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00338A
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #35218c;
/* rgb */ color: rgb(53, 33, 140);
/* oklch */ color: oklch(35.2% 0.165 282.4);
Tailwind
colors: {
  custom: {
    50: '#785faf',
    500: '#35218c',
    950: '#000000',
  },
}
SCSS
$custom: #35218c;
$custom-light: #785faf;
$custom-dark: #000000;
JSON
{
  "hex": "#35218c",
  "rgb": {
    "r": 53,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 251.215,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35191,
    "c": 0.16496,
    "h": 282.4
  },
  "luminance": 0.03738
}

Semantic roles & 50–950 ramp

primary
#35218C
secondary
#A6B94F
accent
#E543C7
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #35218C

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

Preview Lab → · Contrast checker → · Palette generator →

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