#351E98#351E98

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

Color values

HEX#351E98
RGBrgb(53, 30, 152)
HSLhsl(251, 67%, 36%)
HSVhsv(251, 80%, 60%)
CMYKcmyk(65.1%, 80.3%, 0%, 40.4%)
CIE-LABlab(23.51, 45.08, -62.11)
CIE-LCHlch(23.51, 76.75, 305.98°)
OKLaboklab(36.08% 0.034 -0.1792)
OKLCHoklch(36.08% 0.182 280.7)
XYZxyz(7.5982, 3.9518, 30.0621)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351E98 #81981E
analogous
#1E4498 #351E98 #721E98
triadic
#351E98 #98351E #1E9835
tetradic
#351E98 #981E44 #81981E #1E9872
square
#351E98 #981E44 #81981E #1E9872
split-complementary
#351E98 #98721E #44981E
monochromatic
#110A32 #231465 #351E98 #4728CB #6D53DD

Accessibility & contrast

On white

11.73
#351E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #351E98
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351E98#FFFFFF#000000##FFFFFF
##351E981.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #351e98;
/* rgb */ color: rgb(53, 30, 152);
/* oklch */ color: oklch(36.1% 0.182 280.7);
Tailwind
colors: {
  custom: {
    50: '#7a5eb8',
    500: '#351e98',
    950: '#000000',
  },
}
SCSS
$custom: #351e98;
$custom-light: #7a5eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#351e98",
  "rgb": {
    "r": 53,
    "g": 30,
    "b": 152
  },
  "hsl": {
    "h": 251.311,
    "s": 67.033,
    "l": 35.686
  },
  "oklch": {
    "l": 0.3608,
    "c": 0.18244,
    "h": 280.7
  },
  "luminance": 0.03952
}

Semantic roles & 50–950 ramp

primary
#351E98
secondary
#ABC051
accent
#EA3EC9
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #351E98

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

Preview Lab → · Contrast checker → · Palette generator →

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