#35227E#35227E

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

Color values

HEX#35227E
RGBrgb(53, 34, 126)
HSLhsl(252, 58%, 31%)
HSVhsv(252, 73%, 49%)
CMYKcmyk(57.9%, 73%, 0%, 50.6%)
CIE-LABlab(21.61, 34.81, -49.02)
CIE-LCHlch(21.61, 60.12, 305.38°)
OKLaboklab(33.94% 0.0378 -0.141)
OKLCHoklch(33.94% 0.146 285)
XYZxyz(5.8050, 3.4070, 20.0863)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#35227E #6B7E22
analogous
#223D7E #35227E #63227E
triadic
#35227E #7E3522 #227E35
tetradic
#35227E #7E223D #6B7E22 #227E63
square
#35227E #7E223D #6B7E22 #227E63
split-complementary
#35227E #7E6322 #3D7E22
monochromatic
#0C081E #21154E #35227E #492FAE #674CCF

Accessibility & contrast

On white

12.49
#35227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#35227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #35227E
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##35227E#FFFFFF#000000##FFFFFF
##35227E1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#123A4D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #35227e;
/* rgb */ color: rgb(53, 34, 126);
/* oklch */ color: oklch(33.9% 0.146 285.0);
Tailwind
colors: {
  custom: {
    50: '#755fa4',
    500: '#35227e',
    950: '#000000',
  },
}
SCSS
$custom: #35227e;
$custom-light: #755fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#35227e",
  "rgb": {
    "r": 53,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 252.391,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33936,
    "c": 0.14602,
    "h": 285
  },
  "luminance": 0.03407
}

Semantic roles & 50–950 ramp

primary
#35227E
secondary
#9CB14B
accent
#E147C1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #35227E

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

Preview Lab → · Contrast checker → · Palette generator →

#35227E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva