#351998#351998

#351998 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.187 H 281.3°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#351998
RGBrgb(53, 25, 152)
HSLhsl(253, 72%, 35%)
HSVhsv(253, 84%, 60%)
CMYKcmyk(65.1%, 83.6%, 0%, 40.4%)
CIE-LABlab(22.72, 47.39, -63.42)
CIE-LCHlch(22.72, 79.17, 306.77°)
OKLaboklab(35.53% 0.0366 -0.183)
OKLCHoklch(35.53% 0.187 281.3)
XYZxyz(7.4815, 3.7186, 30.0232)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351998 #7C9819
analogous
#193D98 #351998 #741998
triadic
#351998 #983519 #199835
tetradic
#351998 #98193D #7C9819 #199874
square
#351998 #98193D #7C9819 #199874
split-complementary
#351998 #987419 #3D9819
monochromatic
#10082F #231063 #351998 #4722CD #6B4AE1

Accessibility & contrast

On white

12.04
#351998 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#351998 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351998
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351998#FFFFFF#000000##FFFFFF
##3519981.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9B
Deuteranopia (green-blind)
#003296
Tritanopia (blue-blind)
#00415A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #351998;
/* rgb */ color: rgb(53, 25, 152);
/* oklch */ color: oklch(35.5% 0.187 281.3);
Tailwind
colors: {
  custom: {
    50: '#7b5bb8',
    500: '#351998',
    950: '#000000',
  },
}
SCSS
$custom: #351998;
$custom-light: #7b5bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#351998",
  "rgb": {
    "r": 53,
    "g": 25,
    "b": 152
  },
  "hsl": {
    "h": 253.228,
    "s": 71.751,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35531,
    "c": 0.18663,
    "h": 281.3
  },
  "luminance": 0.03719
}

Semantic roles & 50–950 ramp

primary
#351998
secondary
#A8C34A
accent
#EE39C7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #351998

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

Preview Lab → · Contrast checker → · Palette generator →

#351998 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva