#35227D#35227D

#35227D is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.8% C 0.145 H 285.2°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#35227D
RGBrgb(53, 34, 125)
HSLhsl(253, 57%, 31%)
HSVhsv(253, 73%, 49%)
CMYKcmyk(57.6%, 72.8%, 0%, 51%)
CIE-LABlab(21.51, 34.49, -48.54)
CIE-LCHlch(21.51, 59.55, 305.40°)
OKLaboklab(33.84% 0.0381 -0.1396)
OKLCHoklch(33.84% 0.145 285.2)
XYZxyz(5.7408, 3.3813, 19.7482)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#35227D #6A7D22
analogous
#223C7D #35227D #62227D
triadic
#35227D #7D3522 #227D35
tetradic
#35227D #7D223C #6A7D22 #227D62
square
#35227D #7D223C #6A7D22 #227D62
split-complementary
#35227D #7D6222 #3C7D22
monochromatic
#0C081D #21154D #35227D #492FAD #674BCE

Accessibility & contrast

On white

12.53
#35227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#35227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #35227D
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##35227D#FFFFFF#000000##FFFFFF
##35227D1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#143A4D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #35227d;
/* rgb */ color: rgb(53, 34, 125);
/* oklch */ color: oklch(33.8% 0.145 285.2);
Tailwind
colors: {
  custom: {
    50: '#755fa4',
    500: '#35227d',
    950: '#000000',
  },
}
SCSS
$custom: #35227d;
$custom-light: #755fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#35227d",
  "rgb": {
    "r": 53,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 252.527,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33839,
    "c": 0.14472,
    "h": 285.2
  },
  "luminance": 0.03382
}

Semantic roles & 50–950 ramp

primary
#35227D
secondary
#9BB04B
accent
#E047C1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #35227D

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

Preview Lab → · Contrast checker → · Palette generator →

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