#35227B#35227B

#35227B is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.6% C 0.142 H 285.7°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#35227B
RGBrgb(53, 34, 123)
HSLhsl(253, 57%, 31%)
HSVhsv(253, 72%, 48%)
CMYKcmyk(56.9%, 72.4%, 0%, 51.8%)
CIE-LABlab(21.32, 33.85, -47.57)
CIE-LCHlch(21.32, 58.39, 305.44°)
OKLaboklab(33.65% 0.0384 -0.1368)
OKLCHoklch(33.65% 0.142 285.7)
XYZxyz(5.6143, 3.3307, 19.0821)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#35227B #687B22
analogous
#223B7B #35227B #61227B
triadic
#35227B #7B3522 #227B35
tetradic
#35227B #7B223B #687B22 #227B61
square
#35227B #7B223B #687B22 #227B61
split-complementary
#35227B #7B6122 #3B7B22
monochromatic
#0C071B #20154B #35227B #4A2FAB #664ACD

Accessibility & contrast

On white

12.60
#35227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #35227B
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##35227B#FFFFFF#000000##FFFFFF
##35227B1.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#003079
Tritanopia (blue-blind)
#16394C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #35227b;
/* rgb */ color: rgb(53, 34, 123);
/* oklch */ color: oklch(33.6% 0.142 285.7);
Tailwind
colors: {
  custom: {
    50: '#745fa2',
    500: '#35227b',
    950: '#000000',
  },
}
SCSS
$custom: #35227b;
$custom-light: #745fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#35227b",
  "rgb": {
    "r": 53,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 252.809,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33647,
    "c": 0.14211,
    "h": 285.7
  },
  "luminance": 0.03331
}

Semantic roles & 50–950 ramp

primary
#35227B
secondary
#99AE4B
accent
#E048BF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #35227B

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

Preview Lab → · Contrast checker → · Palette generator →

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