#351F95#351F95

#351F95 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.178 H 281.1°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#351F95
RGBrgb(53, 31, 149)
HSLhsl(251, 66%, 35%)
HSVhsv(251, 79%, 58%)
CMYKcmyk(64.4%, 79.2%, 0%, 41.6%)
CIE-LABlab(23.36, 43.67, -60.51)
CIE-LCHlch(23.36, 74.63, 305.82°)
OKLaboklab(35.88% 0.0343 -0.1746)
OKLCHoklch(35.88% 0.178 281.1)
XYZxyz(7.3813, 3.9062, 28.7929)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351F95 #7F951F
analogous
#1F4495 #351F95 #701F95
triadic
#351F95 #95351F #1F9535
tetradic
#351F95 #951F44 #7F951F #1F9570
square
#351F95 #951F44 #7F951F #1F9570
split-complementary
#351F95 #95701F #44951F
monochromatic
#110A30 #231462 #351F95 #472AC8 #6D53DB

Accessibility & contrast

On white

11.79
#351F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#351F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351F95
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351F95#FFFFFF#000000##FFFFFF
##351F951.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C98
Deuteranopia (green-blind)
#003393
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #351f95;
/* rgb */ color: rgb(53, 31, 149);
/* oklch */ color: oklch(35.9% 0.178 281.1);
Tailwind
colors: {
  custom: {
    50: '#7a5eb5',
    500: '#351f95',
    950: '#000000',
  },
}
SCSS
$custom: #351f95;
$custom-light: #7a5eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#351f95",
  "rgb": {
    "r": 53,
    "g": 31,
    "b": 149
  },
  "hsl": {
    "h": 251.186,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35877,
    "c": 0.17795,
    "h": 281.1
  },
  "luminance": 0.03907
}

Semantic roles & 50–950 ramp

primary
#351F95
secondary
#AABF51
accent
#E93FC9
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #351F95

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

Preview Lab → · Contrast checker → · Palette generator →

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