#351F7D#351F7D

#351F7D is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.148 H 285.9°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#351F7D
RGBrgb(53, 31, 125)
HSLhsl(254, 60%, 31%)
HSVhsv(254, 75%, 49%)
CMYKcmyk(57.6%, 75.2%, 0%, 51%)
CIE-LABlab(20.89, 36.21, -49.55)
CIE-LCHlch(20.89, 61.37, 306.16°)
OKLaboklab(33.4% 0.0407 -0.1426)
OKLCHoklch(33.4% 0.148 285.9)
XYZxyz(5.6587, 3.2172, 19.7209)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351F7D #677D1F
analogous
#1F387D #351F7D #641F7D
triadic
#351F7D #7D351F #1F7D35
tetradic
#351F7D #7D1F38 #677D1F #1F7D64
square
#351F7D #7D1F38 #677D1F #1F7D64
split-complementary
#351F7D #7D641F #387D1F
monochromatic
#0B071B #20134C #351F7D #4A2BAE #6645D1

Accessibility & contrast

On white

12.78
#351F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#351F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351F7D
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351F7D#FFFFFF#000000##FFFFFF
##351F7D1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#14394C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #351f7d;
/* rgb */ color: rgb(53, 31, 125);
/* oklch */ color: oklch(33.4% 0.148 285.9);
Tailwind
colors: {
  custom: {
    50: '#755da4',
    500: '#351f7d',
    950: '#000000',
  },
}
SCSS
$custom: #351f7d;
$custom-light: #755da4;
$custom-dark: #000000;
JSON
{
  "hex": "#351f7d",
  "rgb": {
    "r": 53,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 254.043,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33401,
    "c": 0.14827,
    "h": 285.9
  },
  "luminance": 0.03218
}

Semantic roles & 50–950 ramp

primary
#351F7D
secondary
#98B048
accent
#E344BE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #351F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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