#351B82#351B82

#351B82 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.159 H 285.5°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#351B82
RGBrgb(53, 27, 130)
HSLhsl(255, 66%, 31%)
HSVhsv(255, 79%, 51%)
CMYKcmyk(59.2%, 79.2%, 0%, 49%)
CIE-LABlab(20.64, 39.90, -53.13)
CIE-LCHlch(20.64, 66.44, 306.91°)
OKLaboklab(33.38% 0.0425 -0.153)
OKLCHoklch(33.38% 0.159 285.5)
XYZxyz(5.8882, 3.1521, 21.4129)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351B82 #68821B
analogous
#1B3482 #351B82 #681B82
triadic
#351B82 #82351B #1B8235
tetradic
#351B82 #821B34 #68821B #1B8268
square
#351B82 #821B34 #68821B #1B8268
split-complementary
#351B82 #82681B #34821B
monochromatic
#0C061D #20104F #351B82 #4A26B5 #6640D7

Accessibility & contrast

On white

12.88
#351B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#351B82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351B82
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351B82#FFFFFF#000000##FFFFFF
##351B821.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003485
Deuteranopia (green-blind)
#002F80
Tritanopia (blue-blind)
#0D394E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #351b82;
/* rgb */ color: rgb(53, 27, 130);
/* oklch */ color: oklch(33.4% 0.159 285.5);
Tailwind
colors: {
  custom: {
    50: '#765ba7',
    500: '#351b82',
    950: '#000000',
  },
}
SCSS
$custom: #351b82;
$custom-light: #765ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#351b82",
  "rgb": {
    "r": 53,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 255.146,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33378,
    "c": 0.15882,
    "h": 285.5
  },
  "luminance": 0.03152
}

Semantic roles & 50–950 ramp

primary
#351B82
secondary
#99B643
accent
#E93FBE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #351B82

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

Preview Lab → · Contrast checker → · Palette generator →

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