#35218A#35218A

#35218A is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.162 H 282.8°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#35218A
RGBrgb(53, 33, 138)
HSLhsl(251, 61%, 34%)
HSVhsv(251, 76%, 54%)
CMYKcmyk(61.6%, 76.1%, 0%, 45.9%)
CIE-LABlab(22.58, 39.20, -54.97)
CIE-LCHlch(22.58, 67.51, 305.49°)
OKLaboklab(34.99% 0.0359 -0.1584)
OKLCHoklch(34.99% 0.162 282.8)
XYZxyz(6.5981, 3.6791, 24.4023)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#35218A #768A21
analogous
#21418A #35218A #69218A
triadic
#35218A #8A3521 #218A35
tetradic
#35218A #8A2141 #768A21 #218A69
square
#35218A #8A2141 #768A21 #218A69
split-complementary
#35218A #8A6921 #418A21
monochromatic
#0F0927 #221559 #35218A #482DBB #6A50D5

Accessibility & contrast

On white

12.10
#35218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#35218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #35218A
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##35218A#FFFFFF#000000##FFFFFF
##35218A1.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398D
Deuteranopia (green-blind)
#003288
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #35218a;
/* rgb */ color: rgb(53, 33, 138);
/* oklch */ color: oklch(35.0% 0.162 282.8);
Tailwind
colors: {
  custom: {
    50: '#775fad',
    500: '#35218a',
    950: '#000000',
  },
}
SCSS
$custom: #35218a;
$custom-light: #775fad;
$custom-dark: #000000;
JSON
{
  "hex": "#35218a",
  "rgb": {
    "r": 53,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 251.429,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34987,
    "c": 0.16246,
    "h": 282.8
  },
  "luminance": 0.0368
}

Semantic roles & 50–950 ramp

primary
#35218A
secondary
#A4B94E
accent
#E543C6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #35218A

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

Preview Lab → · Contrast checker → · Palette generator →

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