#35217F#35217F

#35217F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.9% C 0.149 H 285.0°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#35217F
RGBrgb(53, 33, 127)
HSLhsl(253, 59%, 31%)
HSVhsv(253, 74%, 50%)
CMYKcmyk(58.3%, 74%, 0%, 50.2%)
CIE-LABlab(21.49, 35.71, -49.83)
CIE-LCHlch(21.49, 61.31, 305.63°)
OKLaboklab(33.89% 0.0385 -0.1434)
OKLCHoklch(33.89% 0.149 285)
XYZxyz(5.8417, 3.3766, 20.4185)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#35217F #6B7F21
analogous
#213C7F #35217F #64217F
triadic
#35217F #7F3521 #217F35
tetradic
#35217F #7F213C #6B7F21 #217F64
square
#35217F #7F213C #6B7F21 #217F64
split-complementary
#35217F #7F6421 #3C7F21
monochromatic
#0C081E #21144E #35217F #492EB0 #674AD0

Accessibility & contrast

On white

12.53
#35217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#35217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #35217F
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##35217F#FFFFFF#000000##FFFFFF
##35217F1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#113A4D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #35217f;
/* rgb */ color: rgb(53, 33, 127);
/* oklch */ color: oklch(33.9% 0.149 285.0);
Tailwind
colors: {
  custom: {
    50: '#755ea5',
    500: '#35217f',
    950: '#000000',
  },
}
SCSS
$custom: #35217f;
$custom-light: #755ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#35217f",
  "rgb": {
    "r": 53,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 252.766,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33886,
    "c": 0.14851,
    "h": 285
  },
  "luminance": 0.03377
}

Semantic roles & 50–950 ramp

primary
#35217F
secondary
#9CB24A
accent
#E246C1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #35217F

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

Preview Lab → · Contrast checker → · Palette generator →

#35217F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva