#351271#351271

#351271 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.147 H 291.8°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#351271
RGBrgb(53, 18, 113)
HSLhsl(262, 73%, 26%)
HSVhsv(262, 84%, 44%)
CMYKcmyk(53.1%, 84.1%, 0%, 55.7%)
CIE-LABlab(17.37, 39.20, -47.63)
CIE-LCHlch(17.37, 61.69, 309.46°)
OKLaboklab(30.57% 0.0547 -0.1368)
OKLCHoklch(30.57% 0.147 291.8)
XYZxyz(4.6643, 2.3816, 15.8335)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351271 #4E7112
analogous
#121F71 #351271 #641271
triadic
#351271 #713512 #127135
tetradic
#351271 #71121F #4E7112 #127164
square
#351271 #71121F #4E7112 #127164
split-complementary
#351271 #716412 #1F7112
monochromatic
#0C041A #1C0A3C #351271 #4E1AA6 #6723DB

Accessibility & contrast

On white

14.22
#351271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#351271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351271
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351271#FFFFFF#000000##FFFFFF
##3512711.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00296F
Tritanopia (blue-blind)
#202E42
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #351271;
/* rgb */ color: rgb(53, 18, 113);
/* oklch */ color: oklch(30.6% 0.147 291.8);
Tailwind
colors: {
  custom: {
    50: '#74559b',
    500: '#351271',
    950: '#000000',
  },
}
SCSS
$custom: #351271;
$custom-light: #74559b;
$custom-dark: #000000;
JSON
{
  "hex": "#351271",
  "rgb": {
    "r": 53,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 262.105,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30566,
    "c": 0.14738,
    "h": 291.8
  },
  "luminance": 0.02382
}

Semantic roles & 50–950 ramp

primary
#351271
secondary
#7EA837
accent
#EF39AC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #351271

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

Preview Lab → · Contrast checker → · Palette generator →

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