#351B78#351B78

#351B78 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.147 H 288.0°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#351B78
RGBrgb(53, 27, 120)
HSLhsl(257, 63%, 29%)
HSVhsv(257, 78%, 47%)
CMYKcmyk(55.8%, 77.5%, 0%, 52.9%)
CIE-LABlab(19.62, 36.85, -48.44)
CIE-LCHlch(19.62, 60.87, 307.26°)
OKLaboklab(32.36% 0.0454 -0.1393)
OKLCHoklch(32.36% 0.147 288)
XYZxyz(5.2493, 2.8966, 18.0482)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351B78 #5E781B
analogous
#1B3078 #351B78 #641B78
triadic
#351B78 #78351B #1B7835
tetradic
#351B78 #781B30 #5E781B #1B7864
square
#351B78 #781B30 #5E781B #1B7864
split-complementary
#351B78 #78641B #30781B
monochromatic
#0B0619 #1F1046 #351B78 #4B26AA #653BD3

Accessibility & contrast

On white

13.30
#351B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#351B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351B78
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351B78#FFFFFF#000000##FFFFFF
##351B781.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327B
Deuteranopia (green-blind)
#002D76
Tritanopia (blue-blind)
#1A3548
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #351b78;
/* rgb */ color: rgb(53, 27, 120);
/* oklch */ color: oklch(32.4% 0.147 288.0);
Tailwind
colors: {
  custom: {
    50: '#745aa0',
    500: '#351b78',
    950: '#000000',
  },
}
SCSS
$custom: #351b78;
$custom-light: #745aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#351b78",
  "rgb": {
    "r": 53,
    "g": 27,
    "b": 120
  },
  "hsl": {
    "h": 256.774,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32355,
    "c": 0.14651,
    "h": 288
  },
  "luminance": 0.02897
}

Semantic roles & 50–950 ramp

primary
#351B78
secondary
#8FAC43
accent
#E641B8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #351B78

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

Preview Lab → · Contrast checker → · Palette generator →

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