#351B95#351B95

#351B95 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.182 H 281.6°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#351B95
RGBrgb(53, 27, 149)
HSLhsl(253, 69%, 35%)
HSVhsv(253, 82%, 58%)
CMYKcmyk(64.4%, 81.9%, 0%, 41.6%)
CIE-LABlab(22.69, 45.61, -61.62)
CIE-LCHlch(22.69, 76.66, 306.51°)
OKLaboklab(35.41% 0.0366 -0.1778)
OKLCHoklch(35.41% 0.182 281.6)
XYZxyz(7.2832, 3.7101, 28.7603)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351B95 #7B951B
analogous
#1B3E95 #351B95 #721B95
triadic
#351B95 #95351B #1B9535
tetradic
#351B95 #951B3E #7B951B #1B9572
square
#351B95 #951B3E #7B951B #1B9572
split-complementary
#351B95 #95721B #3E951B
monochromatic
#10082D #231261 #351B95 #4724C9 #6B4CDF

Accessibility & contrast

On white

12.05
#351B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#351B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351B95
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351B95#FFFFFF#000000##FFFFFF
##351B951.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A98
Deuteranopia (green-blind)
#003293
Tritanopia (blue-blind)
#004059
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #351b95;
/* rgb */ color: rgb(53, 27, 149);
/* oklch */ color: oklch(35.4% 0.182 281.6);
Tailwind
colors: {
  custom: {
    50: '#7a5cb5',
    500: '#351b95',
    950: '#000000',
  },
}
SCSS
$custom: #351b95;
$custom-light: #7a5cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#351b95",
  "rgb": {
    "r": 53,
    "g": 27,
    "b": 149
  },
  "hsl": {
    "h": 252.787,
    "s": 69.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35411,
    "c": 0.18151,
    "h": 281.6
  },
  "luminance": 0.03711
}

Semantic roles & 50–950 ramp

primary
#351B95
secondary
#A8C14B
accent
#EC3CC7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #351B95

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

Preview Lab → · Contrast checker → · Palette generator →

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