#351255#351255

#351255 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.8% C 0.114 H 303.5°. Best body text is #FFFFFF at 15.34:1 contrast (WCAG AA passes).

Color values

HEX#351255
RGBrgb(53, 18, 85)
HSLhsl(271, 65%, 20%)
HSVhsv(271, 79%, 33%)
CMYKcmyk(37.6%, 78.8%, 0%, 66.7%)
CIE-LABlab(14.65, 31.38, -33.53)
CIE-LCHlch(14.65, 45.92, 313.10°)
OKLaboklab(27.83% 0.0632 -0.0955)
OKLCHoklch(27.83% 0.114 303.5)
XYZxyz(3.3238, 1.8454, 8.7737)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351255 #325512
analogous
#131255 #351255 #551254
triadic
#351255 #553512 #125535
tetradic
#351255 #551312 #325512 #125455
square
#351255 #551312 #325512 #125455
split-complementary
#351255 #545512 #125513
monochromatic
#100519 #160722 #351255 #541D88 #7427BA

Accessibility & contrast

On white

15.34
#351255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#351255 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351255
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351255#FFFFFF#000000##FFFFFF
##3512551.0015.341.3715.34
#FFFFFF15.341.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002457
Deuteranopia (green-blind)
#002554
Tritanopia (blue-blind)
#2F2232
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #351255;
/* rgb */ color: rgb(53, 18, 85);
/* oklch */ color: oklch(27.8% 0.114 303.5);
Tailwind
colors: {
  custom: {
    50: '#705485',
    500: '#351255',
    950: '#000000',
  },
}
SCSS
$custom: #351255;
$custom-light: #705485;
$custom-dark: #000000;
JSON
{
  "hex": "#351255",
  "rgb": {
    "r": 53,
    "g": 18,
    "b": 85
  },
  "hsl": {
    "h": 271.343,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27828,
    "c": 0.11448,
    "h": 303.5
  },
  "luminance": 0.01845
}

Semantic roles & 50–950 ramp

primary
#351255
secondary
#5F8E35
accent
#E84090
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #351255

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

Preview Lab → · Contrast checker → · Palette generator →

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