#35228B#35228B

#35228B is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.2% C 0.163 H 282.4°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#35228B
RGBrgb(53, 34, 139)
HSLhsl(251, 61%, 34%)
HSVhsv(251, 76%, 55%)
CMYKcmyk(61.9%, 75.5%, 0%, 45.5%)
CIE-LABlab(22.88, 38.96, -55.10)
CIE-LCHlch(22.88, 67.48, 305.26°)
OKLaboklab(35.23% 0.0349 -0.1588)
OKLCHoklch(35.23% 0.163 282.4)
XYZxyz(6.6990, 3.7646, 24.7947)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#35228B #788B22
analogous
#22448B #35228B #6A228B
triadic
#35228B #8B3522 #228B35
tetradic
#35228B #8B2244 #788B22 #228B6A
square
#35228B #8B2244 #788B22 #228B6A
split-complementary
#35228B #8B6A22 #448B22
monochromatic
#100A29 #22165A #35228B #482EBC #6A53D5

Accessibility & contrast

On white

11.98
#35228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #35228B
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##35228B#FFFFFF#000000##FFFFFF
##35228B1.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)
#003A8E
Deuteranopia (green-blind)
#003389
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #35228b;
/* rgb */ color: rgb(53, 34, 139);
/* oklch */ color: oklch(35.2% 0.163 282.4);
Tailwind
colors: {
  custom: {
    50: '#775fae',
    500: '#35228b',
    950: '#000000',
  },
}
SCSS
$custom: #35228b;
$custom-light: #775fae;
$custom-dark: #000000;
JSON
{
  "hex": "#35228b",
  "rgb": {
    "r": 53,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 250.857,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35227,
    "c": 0.16265,
    "h": 282.4
  },
  "luminance": 0.03765
}

Semantic roles & 50–950 ramp

primary
#35228B
secondary
#A6B850
accent
#E444C7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #35228B

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

Preview Lab → · Contrast checker → · Palette generator →

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