#351C8B#351C8B

#351C8B is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.169 H 283.4°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#351C8B
RGBrgb(53, 28, 139)
HSLhsl(254, 66%, 33%)
HSVhsv(254, 80%, 55%)
CMYKcmyk(61.9%, 79.9%, 0%, 45.5%)
CIE-LABlab(21.77, 42.12, -56.93)
CIE-LCHlch(21.77, 70.82, 306.50°)
OKLaboklab(34.45% 0.0391 -0.1641)
OKLCHoklch(34.45% 0.169 283.4)
XYZxyz(6.5422, 3.4510, 24.7425)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351C8B #728B1C
analogous
#1C3A8B #351C8B #6D1C8B
triadic
#351C8B #8B351C #1C8B35
tetradic
#351C8B #8B1C3A #728B1C #1C8B6D
square
#351C8B #8B1C3A #728B1C #1C8B6D
split-complementary
#351C8B #8B6D1C #3A8B1C
monochromatic
#0E0725 #221258 #351C8B #4826BE #6847DA

Accessibility & contrast

On white

12.42
#351C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#351C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351C8B
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351C8B#FFFFFF#000000##FFFFFF
##351C8B1.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #351c8b;
/* rgb */ color: rgb(53, 28, 139);
/* oklch */ color: oklch(34.4% 0.169 283.4);
Tailwind
colors: {
  custom: {
    50: '#785cae',
    500: '#351c8b',
    950: '#000000',
  },
}
SCSS
$custom: #351c8b;
$custom-light: #785cae;
$custom-dark: #000000;
JSON
{
  "hex": "#351c8b",
  "rgb": {
    "r": 53,
    "g": 28,
    "b": 139
  },
  "hsl": {
    "h": 253.514,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34447,
    "c": 0.16874,
    "h": 283.4
  },
  "luminance": 0.03451
}

Semantic roles & 50–950 ramp

primary
#351C8B
secondary
#A2BC47
accent
#E93EC3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #351C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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