#351A8B#351A8B

#351A8B is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.171 H 283.7°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#351A8B
RGBrgb(53, 26, 139)
HSLhsl(254, 68%, 32%)
HSVhsv(254, 81%, 55%)
CMYKcmyk(61.9%, 81.3%, 0%, 45.5%)
CIE-LABlab(21.43, 43.10, -57.49)
CIE-LCHlch(21.43, 71.85, 306.86°)
OKLaboklab(34.21% 0.0404 -0.1657)
OKLCHoklch(34.21% 0.171 283.7)
XYZxyz(6.4964, 3.3593, 24.7272)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351A8B #708B1A
analogous
#1A388B #351A8B #6D1A8B
triadic
#351A8B #8B351A #1A8B35
tetradic
#351A8B #8B1A38 #708B1A #1A8B6D
square
#351A8B #8B1A38 #708B1A #1A8B6D
split-complementary
#351A8B #8B6D1A #388B1A
monochromatic
#0E0724 #211057 #351A8B #4924BF #6843DC

Accessibility & contrast

On white

12.56
#351A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#351A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351A8B
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351A8B#FFFFFF#000000##FFFFFF
##351A8B1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378E
Deuteranopia (green-blind)
#003089
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #351a8b;
/* rgb */ color: rgb(53, 26, 139);
/* oklch */ color: oklch(34.2% 0.171 283.7);
Tailwind
colors: {
  custom: {
    50: '#785bae',
    500: '#351a8b',
    950: '#000000',
  },
}
SCSS
$custom: #351a8b;
$custom-light: #785bae;
$custom-dark: #000000;
JSON
{
  "hex": "#351a8b",
  "rgb": {
    "r": 53,
    "g": 26,
    "b": 139
  },
  "hsl": {
    "h": 254.336,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34212,
    "c": 0.17059,
    "h": 283.7
  },
  "luminance": 0.0336
}

Semantic roles & 50–950 ramp

primary
#351A8B
secondary
#A0BD44
accent
#EB3CC2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #351A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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