#35228A#35228A

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

Color values

HEX#35228A
RGBrgb(53, 34, 138)
HSLhsl(251, 60%, 34%)
HSVhsv(251, 75%, 54%)
CMYKcmyk(61.6%, 75.4%, 0%, 45.9%)
CIE-LABlab(22.78, 38.64, -54.64)
CIE-LCHlch(22.78, 66.93, 305.27°)
OKLaboklab(35.13% 0.0352 -0.1575)
OKLCHoklch(35.13% 0.161 282.6)
XYZxyz(6.6262, 3.7355, 24.4117)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#35228A #778A22
analogous
#22438A #35228A #69228A
triadic
#35228A #8A3522 #228A35
tetradic
#35228A #8A2243 #778A22 #228A69
square
#35228A #8A2243 #778A22 #228A69
split-complementary
#35228A #8A6922 #438A22
monochromatic
#0F0A28 #221659 #35228A #482EBB #6A52D4

Accessibility & contrast

On white

12.02
#35228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#35228A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #35228A
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##35228A#FFFFFF#000000##FFFFFF
##35228A1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #35228a;
/* rgb */ color: rgb(53, 34, 138);
/* oklch */ color: oklch(35.1% 0.161 282.6);
Tailwind
colors: {
  custom: {
    50: '#775fad',
    500: '#35228a',
    950: '#000000',
  },
}
SCSS
$custom: #35228a;
$custom-light: #775fad;
$custom-dark: #000000;
JSON
{
  "hex": "#35228a",
  "rgb": {
    "r": 53,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 250.962,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35125,
    "c": 0.16139,
    "h": 282.6
  },
  "luminance": 0.03736
}

Semantic roles & 50–950 ramp

primary
#35228A
secondary
#A5B850
accent
#E444C6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #35228A

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

Preview Lab → · Contrast checker → · Palette generator →

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