#351B97#351B97

#351B97 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.184 H 281.3°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#351B97
RGBrgb(53, 27, 151)
HSLhsl(253, 70%, 35%)
HSVhsv(253, 82%, 59%)
CMYKcmyk(64.9%, 82.1%, 0%, 40.8%)
CIE-LABlab(22.91, 46.20, -62.48)
CIE-LCHlch(22.91, 77.71, 306.48°)
OKLaboklab(35.63% 0.0359 -0.1803)
OKLCHoklch(35.63% 0.184 281.3)
XYZxyz(7.4443, 3.7745, 29.6084)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351B97 #7D971B
analogous
#1B3F97 #351B97 #731B97
triadic
#351B97 #97351B #1B9735
tetradic
#351B97 #971B3F #7D971B #1B9773
square
#351B97 #971B3F #7D971B #1B9773
split-complementary
#351B97 #97731B #3F971B
monochromatic
#11082F #231263 #351B97 #4724CB #6C4DDF

Accessibility & contrast

On white

11.97
#351B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #351B97
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351B97#FFFFFF#000000##FFFFFF
##351B971.0011.971.7611.97
#FFFFFF11.971.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9A
Deuteranopia (green-blind)
#003295
Tritanopia (blue-blind)
#00415A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #351b97;
/* rgb */ color: rgb(53, 27, 151);
/* oklch */ color: oklch(35.6% 0.184 281.3);
Tailwind
colors: {
  custom: {
    50: '#7a5cb7',
    500: '#351b97',
    950: '#000000',
  },
}
SCSS
$custom: #351b97;
$custom-light: #7a5cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#351b97",
  "rgb": {
    "r": 53,
    "g": 27,
    "b": 151
  },
  "hsl": {
    "h": 252.581,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35631,
    "c": 0.18385,
    "h": 281.3
  },
  "luminance": 0.03775
}

Semantic roles & 50–950 ramp

primary
#351B97
secondary
#A9C14C
accent
#EC3BC7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #351B97

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

Preview Lab → · Contrast checker → · Palette generator →

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