#351F7A#351F7A

#351F7A is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.144 H 286.7°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#351F7A
RGBrgb(53, 31, 122)
HSLhsl(255, 59%, 30%)
HSVhsv(255, 75%, 48%)
CMYKcmyk(56.6%, 74.6%, 0%, 52.2%)
CIE-LABlab(20.60, 35.27, -48.12)
CIE-LCHlch(20.60, 59.66, 306.24°)
OKLaboklab(33.11% 0.0414 -0.1384)
OKLCHoklch(33.11% 0.144 286.7)
XYZxyz(5.4700, 3.1417, 18.7268)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351F7A #647A1F
analogous
#1F377A #351F7A #621F7A
triadic
#351F7A #7A351F #1F7A35
tetradic
#351F7A #7A1F37 #647A1F #1F7A62
square
#351F7A #7A1F37 #647A1F #1F7A62
split-complementary
#351F7A #7A621F #377A1F
monochromatic
#0B0618 #201349 #351F7A #4A2BAB #6644CF

Accessibility & contrast

On white

12.90
#351F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#351F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351F7A
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351F7A#FFFFFF#000000##FFFFFF
##351F7A1.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#002F78
Tritanopia (blue-blind)
#18374A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #351f7a;
/* rgb */ color: rgb(53, 31, 122);
/* oklch */ color: oklch(33.1% 0.144 286.7);
Tailwind
colors: {
  custom: {
    50: '#745da1',
    500: '#351f7a',
    950: '#000000',
  },
}
SCSS
$custom: #351f7a;
$custom-light: #745da1;
$custom-dark: #000000;
JSON
{
  "hex": "#351f7a",
  "rgb": {
    "r": 53,
    "g": 31,
    "b": 122
  },
  "hsl": {
    "h": 254.505,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.33106,
    "c": 0.14444,
    "h": 286.7
  },
  "luminance": 0.03142
}

Semantic roles & 50–950 ramp

primary
#351F7A
secondary
#95AD47
accent
#E345BD
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #351F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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