#351F97#351F97

#351F97 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.180 H 280.8°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#351F97
RGBrgb(53, 31, 151)
HSLhsl(251, 66%, 36%)
HSVhsv(251, 79%, 59%)
CMYKcmyk(64.9%, 79.5%, 0%, 40.8%)
CIE-LABlab(23.57, 44.28, -61.39)
CIE-LCHlch(23.57, 75.70, 305.81°)
OKLaboklab(36.09% 0.0337 -0.1772)
OKLCHoklch(36.09% 0.18 280.8)
XYZxyz(7.5423, 3.9706, 29.6411)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351F97 #81971F
analogous
#1F4597 #351F97 #711F97
triadic
#351F97 #97351F #1F9735
tetradic
#351F97 #971F45 #81971F #1F9771
square
#351F97 #971F45 #81971F #1F9771
split-complementary
#351F97 #97711F #45971F
monochromatic
#110A31 #231564 #351F97 #4729CA #6D54DC

Accessibility & contrast

On white

11.70
#351F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#351F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351F97
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351F97#FFFFFF#000000##FFFFFF
##351F971.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9A
Deuteranopia (green-blind)
#003495
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #351f97;
/* rgb */ color: rgb(53, 31, 151);
/* oklch */ color: oklch(36.1% 0.180 280.8);
Tailwind
colors: {
  custom: {
    50: '#7a5eb7',
    500: '#351f97',
    950: '#000000',
  },
}
SCSS
$custom: #351f97;
$custom-light: #7a5eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#351f97",
  "rgb": {
    "r": 53,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 251,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36091,
    "c": 0.18035,
    "h": 280.8
  },
  "luminance": 0.03971
}

Semantic roles & 50–950 ramp

primary
#351F97
secondary
#ABBF52
accent
#E93FCA
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #351F97

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

Preview Lab → · Contrast checker → · Palette generator →

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