#351F7F#351F7F

#351F7F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.6% C 0.151 H 285.5°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#351F7F
RGBrgb(53, 31, 127)
HSLhsl(254, 61%, 31%)
HSVhsv(254, 76%, 50%)
CMYKcmyk(58.3%, 75.6%, 0%, 50.2%)
CIE-LABlab(21.09, 36.84, -50.50)
CIE-LCHlch(21.09, 62.51, 306.11°)
OKLaboklab(33.6% 0.0402 -0.1453)
OKLCHoklch(33.6% 0.151 285.5)
XYZxyz(5.7878, 3.2688, 20.4005)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351F7F #697F1F
analogous
#1F397F #351F7F #651F7F
triadic
#351F7F #7F351F #1F7F35
tetradic
#351F7F #7F1F39 #697F1F #1F7F65
square
#351F7F #7F1F39 #697F1F #1F7F65
split-complementary
#351F7F #7F651F #397F1F
monochromatic
#0C071D #20134E #351F7F #4A2BB0 #6646D2

Accessibility & contrast

On white

12.70
#351F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#351F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351F7F
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351F7F#FFFFFF#000000##FFFFFF
##351F7F1.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#11394D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #351f7f;
/* rgb */ color: rgb(53, 31, 127);
/* oklch */ color: oklch(33.6% 0.151 285.5);
Tailwind
colors: {
  custom: {
    50: '#755da5',
    500: '#351f7f',
    950: '#000000',
  },
}
SCSS
$custom: #351f7f;
$custom-light: #755da5;
$custom-dark: #000000;
JSON
{
  "hex": "#351f7f",
  "rgb": {
    "r": 53,
    "g": 31,
    "b": 127
  },
  "hsl": {
    "h": 253.75,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.336,
    "c": 0.15081,
    "h": 285.5
  },
  "luminance": 0.03269
}

Semantic roles & 50–950 ramp

primary
#351F7F
secondary
#9AB248
accent
#E444BF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #351F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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