#351F81#351F81

#351F81 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.153 H 285.0°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#351F81
RGBrgb(53, 31, 129)
HSLhsl(253, 61%, 31%)
HSVhsv(253, 76%, 51%)
CMYKcmyk(58.9%, 76%, 0%, 49.4%)
CIE-LABlab(21.29, 37.47, -51.44)
CIE-LCHlch(21.29, 63.63, 306.07°)
OKLaboklab(33.8% 0.0397 -0.1481)
OKLCHoklch(33.8% 0.153 285)
XYZxyz(5.9194, 3.3215, 21.0938)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351F81 #6B811F
analogous
#1F3A81 #351F81 #661F81
triadic
#351F81 #81351F #1F8135
tetradic
#351F81 #811F3A #6B811F #1F8166
square
#351F81 #811F3A #6B811F #1F8166
split-complementary
#351F81 #81661F #3A811F
monochromatic
#0C071E #211350 #351F81 #492BB2 #6747D3

Accessibility & contrast

On white

12.62
#351F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#351F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351F81
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351F81#FFFFFF#000000##FFFFFF
##351F811.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003684
Deuteranopia (green-blind)
#00307F
Tritanopia (blue-blind)
#0E3A4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #351f81;
/* rgb */ color: rgb(53, 31, 129);
/* oklch */ color: oklch(33.8% 0.153 285.0);
Tailwind
colors: {
  custom: {
    50: '#765da7',
    500: '#351f81',
    950: '#000000',
  },
}
SCSS
$custom: #351f81;
$custom-light: #765da7;
$custom-dark: #000000;
JSON
{
  "hex": "#351f81",
  "rgb": {
    "r": 53,
    "g": 31,
    "b": 129
  },
  "hsl": {
    "h": 253.469,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.338,
    "c": 0.15333,
    "h": 285
  },
  "luminance": 0.03322
}

Semantic roles & 50–950 ramp

primary
#351F81
secondary
#9CB448
accent
#E443C0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #351F81

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

Preview Lab → · Contrast checker → · Palette generator →

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