#351F79#351F79

#351F79 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.143 H 286.9°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#351F79
RGBrgb(53, 31, 121)
HSLhsl(255, 59%, 30%)
HSVhsv(255, 74%, 47%)
CMYKcmyk(56.2%, 74.4%, 0%, 52.5%)
CIE-LABlab(20.51, 34.96, -47.63)
CIE-LCHlch(20.51, 59.09, 306.27°)
OKLaboklab(33.01% 0.0416 -0.137)
OKLCHoklch(33.01% 0.143 286.9)
XYZxyz(5.4083, 3.1170, 18.4021)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351F79 #63791F
analogous
#1F3679 #351F79 #621F79
triadic
#351F79 #79351F #1F7935
tetradic
#351F79 #791F36 #63791F #1F7962
square
#351F79 #791F36 #63791F #1F7962
split-complementary
#351F79 #79621F #36791F
monochromatic
#0B0618 #201348 #351F79 #4A2BAA #6643CF

Accessibility & contrast

On white

12.94
#351F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#351F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351F79
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351F79#FFFFFF#000000##FFFFFF
##351F791.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347C
Deuteranopia (green-blind)
#002F77
Tritanopia (blue-blind)
#19374A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #351f79;
/* rgb */ color: rgb(53, 31, 121);
/* oklch */ color: oklch(33.0% 0.143 286.9);
Tailwind
colors: {
  custom: {
    50: '#745da1',
    500: '#351f79',
    950: '#000000',
  },
}
SCSS
$custom: #351f79;
$custom-light: #745da1;
$custom-dark: #000000;
JSON
{
  "hex": "#351f79",
  "rgb": {
    "r": 53,
    "g": 31,
    "b": 121
  },
  "hsl": {
    "h": 254.667,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33008,
    "c": 0.14315,
    "h": 286.9
  },
  "luminance": 0.03117
}

Semantic roles & 50–950 ramp

primary
#351F79
secondary
#94AC47
accent
#E245BC
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #351F79

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

Preview Lab → · Contrast checker → · Palette generator →

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