#351F85#351F85

#351F85 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.158 H 284.1°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#351F85
RGBrgb(53, 31, 133)
HSLhsl(253, 62%, 32%)
HSVhsv(253, 77%, 52%)
CMYKcmyk(60.2%, 76.7%, 0%, 47.8%)
CIE-LABlab(21.69, 38.72, -53.30)
CIE-LCHlch(21.69, 65.88, 306.00°)
OKLaboklab(34.21% 0.0387 -0.1535)
OKLCHoklch(34.21% 0.158 284.1)
XYZxyz(6.1905, 3.4299, 22.5216)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351F85 #6F851F
analogous
#1F3C85 #351F85 #681F85
triadic
#351F85 #85351F #1F8535
tetradic
#351F85 #851F3C #6F851F #1F8568
square
#351F85 #851F3C #6F851F #1F8568
split-complementary
#351F85 #85681F #3C851F
monochromatic
#0D0822 #211353 #351F85 #492BB7 #684AD5

Accessibility & contrast

On white

12.46
#351F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#351F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351F85
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351F85#FFFFFF#000000##FFFFFF
##351F851.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003788
Deuteranopia (green-blind)
#003183
Tritanopia (blue-blind)
#063C50
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #351f85;
/* rgb */ color: rgb(53, 31, 133);
/* oklch */ color: oklch(34.2% 0.158 284.1);
Tailwind
colors: {
  custom: {
    50: '#775daa',
    500: '#351f85',
    950: '#000000',
  },
}
SCSS
$custom: #351f85;
$custom-light: #775daa;
$custom-dark: #000000;
JSON
{
  "hex": "#351f85",
  "rgb": {
    "r": 53,
    "g": 31,
    "b": 133
  },
  "hsl": {
    "h": 252.941,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34205,
    "c": 0.15835,
    "h": 284.1
  },
  "luminance": 0.0343
}

Semantic roles & 50–950 ramp

primary
#351F85
secondary
#9FB749
accent
#E543C2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #351F85

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

Preview Lab → · Contrast checker → · Palette generator →

#351F85 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva