#351F84#351F84

#351F84 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.157 H 284.4°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#351F84
RGBrgb(53, 31, 132)
HSLhsl(253, 62%, 32%)
HSVhsv(253, 77%, 52%)
CMYKcmyk(59.8%, 76.5%, 0%, 48.2%)
CIE-LABlab(21.59, 38.41, -52.83)
CIE-LCHlch(21.59, 65.32, 306.01°)
OKLaboklab(34.1% 0.039 -0.1522)
OKLCHoklch(34.1% 0.157 284.4)
XYZxyz(6.1218, 3.4024, 22.1595)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351F84 #6E841F
analogous
#1F3C84 #351F84 #681F84
triadic
#351F84 #84351F #1F8435
tetradic
#351F84 #841F3C #6E841F #1F8468
square
#351F84 #841F3C #6E841F #1F8468
split-complementary
#351F84 #84681F #3C841F
monochromatic
#0D0821 #211352 #351F84 #492BB6 #6749D4

Accessibility & contrast

On white

12.50
#351F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#351F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351F84
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351F84#FFFFFF#000000##FFFFFF
##351F841.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003787
Deuteranopia (green-blind)
#003082
Tritanopia (blue-blind)
#083B50
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #351f84;
/* rgb */ color: rgb(53, 31, 132);
/* oklch */ color: oklch(34.1% 0.157 284.4);
Tailwind
colors: {
  custom: {
    50: '#765da9',
    500: '#351f84',
    950: '#000000',
  },
}
SCSS
$custom: #351f84;
$custom-light: #765da9;
$custom-dark: #000000;
JSON
{
  "hex": "#351f84",
  "rgb": {
    "r": 53,
    "g": 31,
    "b": 132
  },
  "hsl": {
    "h": 253.069,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34103,
    "c": 0.1571,
    "h": 284.4
  },
  "luminance": 0.03403
}

Semantic roles & 50–950 ramp

primary
#351F84
secondary
#9FB748
accent
#E543C2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #351F84

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

Preview Lab → · Contrast checker → · Palette generator →

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