#351F94#351F94

#351F94 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.177 H 281.3°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#351F94
RGBrgb(53, 31, 148)
HSLhsl(251, 65%, 35%)
HSVhsv(251, 79%, 58%)
CMYKcmyk(64.2%, 79.1%, 0%, 42%)
CIE-LABlab(23.25, 43.36, -60.07)
CIE-LCHlch(23.25, 74.09, 305.82°)
OKLaboklab(35.77% 0.0346 -0.1733)
OKLCHoklch(35.77% 0.177 281.3)
XYZxyz(7.3018, 3.8744, 28.3743)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351F94 #7E941F
analogous
#1F4494 #351F94 #6F1F94
triadic
#351F94 #94351F #1F9435
tetradic
#351F94 #941F44 #7E941F #1F946F
square
#351F94 #941F44 #7E941F #1F946F
split-complementary
#351F94 #946F1F #44941F
monochromatic
#110A2F #231461 #351F94 #472AC7 #6C53DB

Accessibility & contrast

On white

11.83
#351F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#351F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351F94
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351F94#FFFFFF#000000##FFFFFF
##351F941.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B97
Deuteranopia (green-blind)
#003392
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #351f94;
/* rgb */ color: rgb(53, 31, 148);
/* oklch */ color: oklch(35.8% 0.177 281.3);
Tailwind
colors: {
  custom: {
    50: '#7a5eb5',
    500: '#351f94',
    950: '#000000',
  },
}
SCSS
$custom: #351f94;
$custom-light: #7a5eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#351f94",
  "rgb": {
    "r": 53,
    "g": 31,
    "b": 148
  },
  "hsl": {
    "h": 251.282,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.3577,
    "c": 0.17674,
    "h": 281.3
  },
  "luminance": 0.03875
}

Semantic roles & 50–950 ramp

primary
#351F94
secondary
#AABE51
accent
#E83FC9
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #351F94

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

Preview Lab → · Contrast checker → · Palette generator →

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