#35228C#35228C

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

Color values

HEX#35228C
RGBrgb(53, 34, 140)
HSLhsl(251, 61%, 34%)
HSVhsv(251, 76%, 55%)
CMYKcmyk(62.1%, 75.7%, 0%, 45.1%)
CIE-LABlab(22.98, 39.28, -55.56)
CIE-LCHlch(22.98, 68.04, 305.26°)
OKLaboklab(35.33% 0.0347 -0.1602)
OKLCHoklch(35.33% 0.164 282.2)
XYZxyz(6.7724, 3.7939, 25.1813)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#35228C #798C22
analogous
#22448C #35228C #6A228C
triadic
#35228C #8C3522 #228C35
tetradic
#35228C #8C2244 #798C22 #228C6A
square
#35228C #8C2244 #798C22 #228C6A
split-complementary
#35228C #8C6A22 #448C22
monochromatic
#100A2A #22165B #35228C #482EBD #6A53D5

Accessibility & contrast

On white

11.94
#35228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#35228C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #35228C
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##35228C#FFFFFF#000000##FFFFFF
##35228C1.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #35228c;
/* rgb */ color: rgb(53, 34, 140);
/* oklch */ color: oklch(35.3% 0.164 282.2);
Tailwind
colors: {
  custom: {
    50: '#7860af',
    500: '#35228c',
    950: '#000000',
  },
}
SCSS
$custom: #35228c;
$custom-light: #7860af;
$custom-dark: #000000;
JSON
{
  "hex": "#35228c",
  "rgb": {
    "r": 53,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 250.755,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35328,
    "c": 0.1639,
    "h": 282.2
  },
  "luminance": 0.03794
}

Semantic roles & 50–950 ramp

primary
#35228C
secondary
#A6B951
accent
#E444C7
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #35228C

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

Preview Lab → · Contrast checker → · Palette generator →

#35228C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva