#351581#351581

#351581 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.163 H 286.7°. Best body text is #FFFFFF at 13.33:1 contrast (WCAG AA passes).

Color values

HEX#351581
RGBrgb(53, 21, 129)
HSLhsl(258, 72%, 29%)
HSVhsv(258, 84%, 51%)
CMYKcmyk(58.9%, 83.7%, 0%, 49.4%)
CIE-LABlab(19.55, 42.46, -54.30)
CIE-LCHlch(19.55, 68.93, 308.02°)
OKLaboklab(32.58% 0.0469 -0.1564)
OKLCHoklch(32.58% 0.163 286.7)
XYZxyz(5.6976, 2.8779, 21.0199)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351581 #618115
analogous
#152B81 #351581 #6B1581
triadic
#351581 #813515 #158135
tetradic
#351581 #81152B #618115 #15816B
square
#351581 #81152B #618115 #15816B
split-complementary
#351581 #816B15 #2B8115
monochromatic
#0B041A #1F0C4C #351581 #4B1EB6 #6533DE

Accessibility & contrast

On white

13.33
#351581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#351581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351581
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351581#FFFFFF#000000##FFFFFF
##3515811.0013.331.5813.33
#FFFFFF13.331.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#002C7F
Tritanopia (blue-blind)
#0F364C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #351581;
/* rgb */ color: rgb(53, 21, 129);
/* oklch */ color: oklch(32.6% 0.163 286.7);
Tailwind
colors: {
  custom: {
    50: '#7758a7',
    500: '#351581',
    950: '#000000',
  },
}
SCSS
$custom: #351581;
$custom-light: #7758a7;
$custom-dark: #000000;
JSON
{
  "hex": "#351581",
  "rgb": {
    "r": 53,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 257.778,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32585,
    "c": 0.16326,
    "h": 286.7
  },
  "luminance": 0.02878
}

Semantic roles & 50–950 ramp

primary
#351581
secondary
#92B63C
accent
#EF39B9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0310
muted
#7C787F

Preview Lab

Preview with #351581

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

Preview Lab → · Contrast checker → · Palette generator →

#351581 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva