#351252#351252

#351252 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.6% C 0.111 H 305.1°. Best body text is #FFFFFF at 15.44:1 contrast (WCAG AA passes).

Color values

HEX#351252
RGBrgb(53, 18, 82)
HSLhsl(273, 64%, 20%)
HSVhsv(273, 78%, 32%)
CMYKcmyk(35.4%, 78%, 0%, 67.8%)
CIE-LABlab(14.39, 30.57, -31.92)
CIE-LCHlch(14.39, 44.19, 313.76°)
OKLaboklab(27.56% 0.0638 -0.0907)
OKLCHoklch(27.56% 0.111 305.1)
XYZxyz(3.2072, 1.7987, 8.1592)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351252 #2F5212
analogous
#151252 #351252 #52124F
triadic
#351252 #523512 #125235
tetradic
#351252 #521512 #2F5212 #124F52
square
#351252 #521512 #2F5212 #124F52
split-complementary
#351252 #4F5212 #125215
monochromatic
#100619 #150720 #351252 #551D84 #7628B6

Accessibility & contrast

On white

15.44
#351252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#351252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351252
15.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351252#FFFFFF#000000##FFFFFF
##3512521.0015.441.3615.44
#FFFFFF15.441.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002354
Deuteranopia (green-blind)
#002451
Tritanopia (blue-blind)
#302130
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #351252;
/* rgb */ color: rgb(53, 18, 82);
/* oklch */ color: oklch(27.6% 0.111 305.1);
Tailwind
colors: {
  custom: {
    50: '#705383',
    500: '#351252',
    950: '#000000',
  },
}
SCSS
$custom: #351252;
$custom-light: #705383;
$custom-dark: #000000;
JSON
{
  "hex": "#351252",
  "rgb": {
    "r": 53,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 272.813,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.27561,
    "c": 0.11091,
    "h": 305.1
  },
  "luminance": 0.01799
}

Semantic roles & 50–950 ramp

primary
#351252
secondary
#5C8B35
accent
#E7418C
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #351252

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

Preview Lab → · Contrast checker → · Palette generator →

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