#351F91#351F91

#351F91 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.173 H 281.8°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#351F91
RGBrgb(53, 31, 145)
HSLhsl(252, 65%, 35%)
HSVhsv(252, 79%, 57%)
CMYKcmyk(63.4%, 78.6%, 0%, 43.1%)
CIE-LABlab(22.93, 42.44, -58.74)
CIE-LCHlch(22.93, 72.47, 305.85°)
OKLaboklab(35.45% 0.0354 -0.1694)
OKLCHoklch(35.45% 0.173 281.8)
XYZxyz(7.0674, 3.7807, 27.1399)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351F91 #7B911F
analogous
#1F4291 #351F91 #6E1F91
triadic
#351F91 #91351F #1F9135
tetradic
#351F91 #911F42 #7B911F #1F916E
square
#351F91 #911F42 #7B911F #1F916E
split-complementary
#351F91 #916E1F #42911F
monochromatic
#10092C #23145F #351F91 #472AC3 #6B51DA

Accessibility & contrast

On white

11.96
#351F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#351F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351F91
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351F91#FFFFFF#000000##FFFFFF
##351F911.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A94
Deuteranopia (green-blind)
#00338F
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #351f91;
/* rgb */ color: rgb(53, 31, 145);
/* oklch */ color: oklch(35.5% 0.173 281.8);
Tailwind
colors: {
  custom: {
    50: '#795eb2',
    500: '#351f91',
    950: '#000000',
  },
}
SCSS
$custom: #351f91;
$custom-light: #795eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#351f91",
  "rgb": {
    "r": 53,
    "g": 31,
    "b": 145
  },
  "hsl": {
    "h": 251.579,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35452,
    "c": 0.17311,
    "h": 281.8
  },
  "luminance": 0.03781
}

Semantic roles & 50–950 ramp

primary
#351F91
secondary
#A8BD4F
accent
#E840C7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #351F91

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

Preview Lab → · Contrast checker → · Palette generator →

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