#351B79#351B79

#351B79 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.148 H 287.8°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#351B79
RGBrgb(53, 27, 121)
HSLhsl(257, 64%, 29%)
HSVhsv(257, 78%, 47%)
CMYKcmyk(56.2%, 77.7%, 0%, 52.5%)
CIE-LABlab(19.72, 37.16, -48.92)
CIE-LCHlch(19.72, 61.43, 307.22°)
OKLaboklab(32.46% 0.0451 -0.1407)
OKLCHoklch(32.46% 0.148 287.8)
XYZxyz(5.3103, 2.9210, 18.3694)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351B79 #5F791B
analogous
#1B3079 #351B79 #641B79
triadic
#351B79 #79351B #1B7935
tetradic
#351B79 #791B30 #5F791B #1B7964
square
#351B79 #791B30 #5F791B #1B7964
split-complementary
#351B79 #79641B #30791B
monochromatic
#0B0619 #1F1047 #351B79 #4B26AB #653BD3

Accessibility & contrast

On white

13.26
#351B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #351B79
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351B79#FFFFFF#000000##FFFFFF
##351B791.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327C
Deuteranopia (green-blind)
#002D77
Tritanopia (blue-blind)
#193549
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #351b79;
/* rgb */ color: rgb(53, 27, 121);
/* oklch */ color: oklch(32.5% 0.148 287.8);
Tailwind
colors: {
  custom: {
    50: '#755aa1',
    500: '#351b79',
    950: '#000000',
  },
}
SCSS
$custom: #351b79;
$custom-light: #755aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#351b79",
  "rgb": {
    "r": 53,
    "g": 27,
    "b": 121
  },
  "hsl": {
    "h": 256.596,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32455,
    "c": 0.14775,
    "h": 287.8
  },
  "luminance": 0.02921
}

Semantic roles & 50–950 ramp

primary
#351B79
secondary
#90AD43
accent
#E741B9
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #351B79

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

Preview Lab → · Contrast checker → · Palette generator →

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