#35227F#35227F

#35227F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.0% C 0.147 H 284.8°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#35227F
RGBrgb(53, 34, 127)
HSLhsl(252, 58%, 32%)
HSVhsv(252, 73%, 50%)
CMYKcmyk(58.3%, 73.2%, 0%, 50.2%)
CIE-LABlab(21.70, 35.13, -49.49)
CIE-LCHlch(21.70, 60.70, 305.37°)
OKLaboklab(34.03% 0.0376 -0.1424)
OKLCHoklch(34.03% 0.147 284.8)
XYZxyz(5.8698, 3.4329, 20.4279)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#35227F #6C7F22
analogous
#223E7F #35227F #64227F
triadic
#35227F #7F3522 #227F35
tetradic
#35227F #7F223E #6C7F22 #227F64
square
#35227F #7F223E #6C7F22 #227F64
split-complementary
#35227F #7F6422 #3E7F22
monochromatic
#0D081E #21154F #35227F #492FAF #674CCF

Accessibility & contrast

On white

12.45
#35227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#35227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #35227F
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##35227F#FFFFFF#000000##FFFFFF
##35227F1.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #35227f;
/* rgb */ color: rgb(53, 34, 127);
/* oklch */ color: oklch(34.0% 0.147 284.8);
Tailwind
colors: {
  custom: {
    50: '#755fa5',
    500: '#35227f',
    950: '#000000',
  },
}
SCSS
$custom: #35227f;
$custom-light: #755fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#35227f",
  "rgb": {
    "r": 53,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 252.258,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34033,
    "c": 0.14732,
    "h": 284.8
  },
  "luminance": 0.03433
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #35227F

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

Preview Lab → · Contrast checker → · Palette generator →

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