#351D98#351D98

#351D98 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.183 H 280.9°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#351D98
RGBrgb(53, 29, 152)
HSLhsl(252, 68%, 35%)
HSVhsv(252, 81%, 60%)
CMYKcmyk(65.1%, 80.9%, 0%, 40.4%)
CIE-LABlab(23.34, 45.57, -62.38)
CIE-LCHlch(23.34, 77.25, 306.14°)
OKLaboklab(35.96% 0.0345 -0.18)
OKLCHoklch(35.96% 0.183 280.9)
XYZxyz(7.5733, 3.9020, 30.0538)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351D98 #80981D
analogous
#1D4398 #351D98 #721D98
triadic
#351D98 #98351D #1D9835
tetradic
#351D98 #981D43 #80981D #1D9872
square
#351D98 #981D43 #80981D #1D9872
split-complementary
#351D98 #98721D #43981D
monochromatic
#110931 #231365 #351D98 #4727CB #6D52DE

Accessibility & contrast

On white

11.79
#351D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #351D98
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351D98#FFFFFF#000000##FFFFFF
##351D981.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9B
Deuteranopia (green-blind)
#003396
Tritanopia (blue-blind)
#00425B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #351d98;
/* rgb */ color: rgb(53, 29, 152);
/* oklch */ color: oklch(36.0% 0.183 280.9);
Tailwind
colors: {
  custom: {
    50: '#7b5db8',
    500: '#351d98',
    950: '#000000',
  },
}
SCSS
$custom: #351d98;
$custom-light: #7b5db8;
$custom-dark: #000000;
JSON
{
  "hex": "#351d98",
  "rgb": {
    "r": 53,
    "g": 29,
    "b": 152
  },
  "hsl": {
    "h": 251.707,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35964,
    "c": 0.18332,
    "h": 280.9
  },
  "luminance": 0.03903
}

Semantic roles & 50–950 ramp

primary
#351D98
secondary
#ABC150
accent
#EB3DC9
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #351D98

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

Preview Lab → · Contrast checker → · Palette generator →

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