#351995#351995

#351995 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.183 H 281.9°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#351995
RGBrgb(53, 25, 149)
HSLhsl(254, 71%, 34%)
HSVhsv(254, 83%, 58%)
CMYKcmyk(64.4%, 83.2%, 0%, 41.6%)
CIE-LABlab(22.38, 46.52, -62.13)
CIE-LCHlch(22.38, 77.62, 306.82°)
OKLaboklab(35.2% 0.0376 -0.1793)
OKLCHoklch(35.2% 0.183 281.9)
XYZxyz(7.2389, 3.6215, 28.7455)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351995 #799519
analogous
#193B95 #351995 #731995
triadic
#351995 #953519 #199535
tetradic
#351995 #95193B #799519 #199573
square
#351995 #95193B #799519 #199573
split-complementary
#351995 #957319 #3B9519
monochromatic
#10072C #221061 #351995 #4822C9 #6A48E0

Accessibility & contrast

On white

12.18
#351995 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#351995 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351995
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351995#FFFFFF#000000##FFFFFF
##3519951.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003998
Deuteranopia (green-blind)
#003193
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #351995;
/* rgb */ color: rgb(53, 25, 149);
/* oklch */ color: oklch(35.2% 0.183 281.9);
Tailwind
colors: {
  custom: {
    50: '#7a5bb5',
    500: '#351995',
    950: '#000000',
  },
}
SCSS
$custom: #351995;
$custom-light: #7a5bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#351995",
  "rgb": {
    "r": 53,
    "g": 25,
    "b": 149
  },
  "hsl": {
    "h": 253.548,
    "s": 71.264,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35197,
    "c": 0.18317,
    "h": 281.9
  },
  "luminance": 0.03622
}

Semantic roles & 50–950 ramp

primary
#351995
secondary
#A6C248
accent
#EE3AC5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #351995

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

Preview Lab → · Contrast checker → · Palette generator →

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