#35218B#35218B

#35218B is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.164 H 282.6°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#35218B
RGBrgb(53, 33, 139)
HSLhsl(251, 62%, 34%)
HSVhsv(251, 76%, 55%)
CMYKcmyk(61.9%, 76.3%, 0%, 45.5%)
CIE-LABlab(22.68, 39.51, -55.42)
CIE-LCHlch(22.68, 68.06, 305.48°)
OKLaboklab(35.09% 0.0357 -0.1598)
OKLCHoklch(35.09% 0.164 282.6)
XYZxyz(6.6708, 3.7082, 24.7853)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#35218B #778B21
analogous
#21428B #35218B #6A218B
triadic
#35218B #8B3521 #218B35
tetradic
#35218B #8B2142 #778B21 #218B6A
square
#35218B #8B2142 #778B21 #218B6A
split-complementary
#35218B #8B6A21 #428B21
monochromatic
#0F0A28 #22155A #35218B #482DBC #6A51D6

Accessibility & contrast

On white

12.06
#35218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #35218B
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##35218B#FFFFFF#000000##FFFFFF
##35218B1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003289
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #35218b;
/* rgb */ color: rgb(53, 33, 139);
/* oklch */ color: oklch(35.1% 0.164 282.6);
Tailwind
colors: {
  custom: {
    50: '#785fae',
    500: '#35218b',
    950: '#000000',
  },
}
SCSS
$custom: #35218b;
$custom-light: #785fae;
$custom-dark: #000000;
JSON
{
  "hex": "#35218b",
  "rgb": {
    "r": 53,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 251.321,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35089,
    "c": 0.16371,
    "h": 282.6
  },
  "luminance": 0.03709
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #35218B

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

Preview Lab → · Contrast checker → · Palette generator →

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