#351F9D#351F9D

#351F9D is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.187 H 279.8°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#351F9D
RGBrgb(53, 31, 157)
HSLhsl(250, 67%, 37%)
HSVhsv(250, 80%, 62%)
CMYKcmyk(66.2%, 80.3%, 0%, 38.4%)
CIE-LABlab(24.23, 46.11, -63.99)
CIE-LCHlch(24.23, 78.87, 305.78°)
OKLaboklab(36.74% 0.032 -0.1847)
OKLCHoklch(36.74% 0.187 279.8)
XYZxyz(8.0420, 4.1705, 32.2729)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351F9D #879D1F
analogous
#1F489D #351F9D #741F9D
triadic
#351F9D #9D351F #1F9D35
tetradic
#351F9D #9D1F48 #879D1F #1F9D74
square
#351F9D #9D1F48 #879D1F #1F9D74
split-complementary
#351F9D #9D741F #489D1F
monochromatic
#120B37 #24156A #351F9D #4629D0 #7058DE

Accessibility & contrast

On white

11.45
#351F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#351F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351F9D
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351F9D#FFFFFF#000000##FFFFFF
##351F9D1.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA0
Deuteranopia (green-blind)
#00359B
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #351f9d;
/* rgb */ color: rgb(53, 31, 157);
/* oklch */ color: oklch(36.7% 0.187 279.8);
Tailwind
colors: {
  custom: {
    50: '#7b5fbb',
    500: '#351f9d',
    950: '#000000',
  },
}
SCSS
$custom: #351f9d;
$custom-light: #7b5fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#351f9d",
  "rgb": {
    "r": 53,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 250.476,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.3674,
    "c": 0.18749,
    "h": 279.8
  },
  "luminance": 0.04171
}

Semantic roles & 50–950 ramp

primary
#351F9D
secondary
#AFC256
accent
#EA3ECC
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #351F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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