#351B96#351B96

#351B96 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.183 H 281.4°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#351B96
RGBrgb(53, 27, 150)
HSLhsl(253, 69%, 35%)
HSVhsv(253, 82%, 59%)
CMYKcmyk(64.7%, 82%, 0%, 41.2%)
CIE-LABlab(22.80, 45.91, -62.05)
CIE-LCHlch(22.80, 77.19, 306.49°)
OKLaboklab(35.52% 0.0363 -0.179)
OKLCHoklch(35.52% 0.183 281.4)
XYZxyz(7.3634, 3.7422, 29.1825)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351B96 #7C961B
analogous
#1B3E96 #351B96 #731B96
triadic
#351B96 #96351B #1B9635
tetradic
#351B96 #961B3E #7C961B #1B9673
square
#351B96 #961B3E #7C961B #1B9673
split-complementary
#351B96 #96731B #3E961B
monochromatic
#10082E #231262 #351B96 #4724CA #6B4DDF

Accessibility & contrast

On white

12.01
#351B96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#351B96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351B96
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351B96#FFFFFF#000000##FFFFFF
##351B961.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A99
Deuteranopia (green-blind)
#003294
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #351b96;
/* rgb */ color: rgb(53, 27, 150);
/* oklch */ color: oklch(35.5% 0.183 281.4);
Tailwind
colors: {
  custom: {
    50: '#7a5cb6',
    500: '#351b96',
    950: '#000000',
  },
}
SCSS
$custom: #351b96;
$custom-light: #7a5cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#351b96",
  "rgb": {
    "r": 53,
    "g": 27,
    "b": 150
  },
  "hsl": {
    "h": 252.683,
    "s": 69.492,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35521,
    "c": 0.18268,
    "h": 281.4
  },
  "luminance": 0.03743
}

Semantic roles & 50–950 ramp

primary
#351B96
secondary
#A8C14C
accent
#EC3BC7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #351B96

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

Preview Lab → · Contrast checker → · Palette generator →

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