#351A78#351A78

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

Color values

HEX#351A78
RGBrgb(53, 26, 120)
HSLhsl(257, 64%, 29%)
HSVhsv(257, 78%, 47%)
CMYKcmyk(55.8%, 78.3%, 0%, 52.9%)
CIE-LABlab(19.44, 37.38, -48.75)
CIE-LCHlch(19.44, 61.43, 307.48°)
OKLaboklab(32.22% 0.0462 -0.1402)
OKLCHoklch(32.22% 0.148 288.2)
XYZxyz(5.2268, 2.8515, 18.0406)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351A78 #5D781A
analogous
#1A2E78 #351A78 #641A78
triadic
#351A78 #78351A #1A7835
tetradic
#351A78 #781A2E #5D781A #1A7864
square
#351A78 #781A2E #5D781A #1A7864
split-complementary
#351A78 #78641A #2E781A
monochromatic
#0B0519 #1F0F46 #351A78 #4B25AA #6538D4

Accessibility & contrast

On white

13.37
#351A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#351A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351A78
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351A78#FFFFFF#000000##FFFFFF
##351A781.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #351a78;
/* rgb */ color: rgb(53, 26, 120);
/* oklch */ color: oklch(32.2% 0.148 288.2);
Tailwind
colors: {
  custom: {
    50: '#755aa0',
    500: '#351a78',
    950: '#000000',
  },
}
SCSS
$custom: #351a78;
$custom-light: #755aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#351a78",
  "rgb": {
    "r": 53,
    "g": 26,
    "b": 120
  },
  "hsl": {
    "h": 257.234,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32224,
    "c": 0.14762,
    "h": 288.2
  },
  "luminance": 0.02852
}

Semantic roles & 50–950 ramp

primary
#351A78
secondary
#8EAC41
accent
#E740B7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #351A78

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

Preview Lab → · Contrast checker → · Palette generator →

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