#351FA1#351FA1

#351FA1 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.192 H 279.2°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#351FA1
RGBrgb(53, 31, 161)
HSLhsl(250, 68%, 38%)
HSVhsv(250, 81%, 63%)
CMYKcmyk(67.1%, 80.7%, 0%, 36.9%)
CIE-LABlab(24.67, 47.32, -65.70)
CIE-LCHlch(24.67, 80.97, 305.76°)
OKLaboklab(37.18% 0.0308 -0.1897)
OKLCHoklch(37.18% 0.192 279.2)
XYZxyz(8.3891, 4.3094, 34.1010)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351FA1 #8BA11F
analogous
#1F4AA1 #351FA1 #761FA1
triadic
#351FA1 #A1351F #1FA135
tetradic
#351FA1 #A11F4A #8BA11F #1FA176
square
#351FA1 #A11F4A #8BA11F #1FA176
split-complementary
#351FA1 #A1761F #4AA11F
monochromatic
#130B3A #24156E #351FA1 #4629D4 #715BDF

Accessibility & contrast

On white

11.28
#351FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#351FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351FA1
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351FA1#FFFFFF#000000##FFFFFF
##351FA11.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA5
Deuteranopia (green-blind)
#00359F
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #351fa1;
/* rgb */ color: rgb(53, 31, 161);
/* oklch */ color: oklch(37.2% 0.192 279.2);
Tailwind
colors: {
  custom: {
    50: '#7c5fbe',
    500: '#351fa1',
    950: '#000000',
  },
}
SCSS
$custom: #351fa1;
$custom-light: #7c5fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#351fa1",
  "rgb": {
    "r": 53,
    "g": 31,
    "b": 161
  },
  "hsl": {
    "h": 250.154,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37177,
    "c": 0.19221,
    "h": 279.2
  },
  "luminance": 0.0431
}

Semantic roles & 50–950 ramp

primary
#351FA1
secondary
#B1C458
accent
#EB3DCD
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #351FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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