#35227C#35227C

#35227C is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.7% C 0.143 H 285.5°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#35227C
RGBrgb(53, 34, 124)
HSLhsl(253, 57%, 31%)
HSVhsv(253, 73%, 49%)
CMYKcmyk(57.3%, 72.6%, 0%, 51.4%)
CIE-LABlab(21.42, 34.17, -48.06)
CIE-LCHlch(21.42, 58.97, 305.42°)
OKLaboklab(33.74% 0.0383 -0.1382)
OKLCHoklch(33.74% 0.143 285.5)
XYZxyz(5.6772, 3.3559, 19.4135)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#35227C #697C22
analogous
#223C7C #35227C #62227C
triadic
#35227C #7C3522 #227C35
tetradic
#35227C #7C223C #697C22 #227C62
square
#35227C #7C223C #697C22 #227C62
split-complementary
#35227C #7C6222 #3C7C22
monochromatic
#0C081C #20154C #35227C #4A2FAC #664BCE

Accessibility & contrast

On white

12.57
#35227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#35227C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #35227C
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##35227C#FFFFFF#000000##FFFFFF
##35227C1.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#153A4C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #35227c;
/* rgb */ color: rgb(53, 34, 124);
/* oklch */ color: oklch(33.7% 0.143 285.5);
Tailwind
colors: {
  custom: {
    50: '#755fa3',
    500: '#35227c',
    950: '#000000',
  },
}
SCSS
$custom: #35227c;
$custom-light: #755fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#35227c",
  "rgb": {
    "r": 53,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 252.667,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33743,
    "c": 0.14341,
    "h": 285.5
  },
  "luminance": 0.03356
}

Semantic roles & 50–950 ramp

primary
#35227C
secondary
#9AAF4B
accent
#E048C0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #35227C

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

Preview Lab → · Contrast checker → · Palette generator →

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