#35218D#35218D

#35218D is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.3% C 0.166 H 282.2°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#35218D
RGBrgb(53, 33, 141)
HSLhsl(251, 62%, 34%)
HSVhsv(251, 77%, 55%)
CMYKcmyk(62.4%, 76.6%, 0%, 44.7%)
CIE-LABlab(22.89, 40.14, -56.33)
CIE-LCHlch(22.89, 69.17, 305.47°)
OKLaboklab(35.29% 0.0352 -0.1624)
OKLCHoklch(35.29% 0.166 282.2)
XYZxyz(6.8183, 3.7672, 25.5620)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#35218D #798D21
analogous
#21438D #35218D #6B218D
triadic
#35218D #8D3521 #218D35
tetradic
#35218D #8D2143 #798D21 #218D6B
square
#35218D #8D2143 #798D21 #218D6B
split-complementary
#35218D #8D6B21 #438D21
monochromatic
#100A2A #22155B #35218D #482DBF #6A52D6

Accessibility & contrast

On white

11.98
#35218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #35218D
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##35218D#FFFFFF#000000##FFFFFF
##35218D1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00338B
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #35218d;
/* rgb */ color: rgb(53, 33, 141);
/* oklch */ color: oklch(35.3% 0.166 282.2);
Tailwind
colors: {
  custom: {
    50: '#785faf',
    500: '#35218d',
    950: '#000000',
  },
}
SCSS
$custom: #35218d;
$custom-light: #785faf;
$custom-dark: #000000;
JSON
{
  "hex": "#35218d",
  "rgb": {
    "r": 53,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 251.111,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35294,
    "c": 0.1662,
    "h": 282.2
  },
  "luminance": 0.03768
}

Semantic roles & 50–950 ramp

primary
#35218D
secondary
#A6BA50
accent
#E543C7
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #35218D

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

Preview Lab → · Contrast checker → · Palette generator →

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