#351852#351852

#351852 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.4% C 0.102 H 303.5°. Best body text is #FFFFFF at 14.96:1 contrast (WCAG AA passes).

Color values

HEX#351852
RGBrgb(53, 24, 82)
HSLhsl(270, 55%, 21%)
HSVhsv(270, 71%, 32%)
CMYKcmyk(35.4%, 70.7%, 0%, 67.8%)
CIE-LABlab(15.59, 27.25, -29.98)
CIE-LCHlch(15.59, 40.51, 312.26°)
OKLaboklab(28.42% 0.0563 -0.0851)
OKLCHoklch(28.42% 0.102 303.5)
XYZxyz(3.3175, 2.0194, 8.1960)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351852 #355218
analogous
#181852 #351852 #521852
triadic
#351852 #523518 #185235
tetradic
#351852 #521818 #355218 #185252
square
#351852 #521818 #355218 #185252
split-complementary
#351852 #525218 #185218
monochromatic
#0F0718 #160A23 #351852 #542681 #7234B1

Accessibility & contrast

On white

14.96
#351852 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#351852 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351852
14.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351852#FFFFFF#000000##FFFFFF
##3518521.0014.961.4014.96
#FFFFFF14.961.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002654
Deuteranopia (green-blind)
#062751
Tritanopia (blue-blind)
#2F2532
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #351852;
/* rgb */ color: rgb(53, 24, 82);
/* oklch */ color: oklch(28.4% 0.102 303.5);
Tailwind
colors: {
  custom: {
    50: '#6f5783',
    500: '#351852',
    950: '#000000',
  },
}
SCSS
$custom: #351852;
$custom-light: #6f5783;
$custom-dark: #000000;
JSON
{
  "hex": "#351852",
  "rgb": {
    "r": 53,
    "g": 24,
    "b": 82
  },
  "hsl": {
    "h": 270,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.28416,
    "c": 0.10202,
    "h": 303.5
  },
  "luminance": 0.02019
}

Semantic roles & 50–950 ramp

primary
#351852
secondary
#63893D
accent
#DE4A94
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030A
muted
#7A787C

Preview Lab

Preview with #351852

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

Preview Lab → · Contrast checker → · Palette generator →

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