#351E8E#351E8E

#351E8E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.170 H 282.5°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#351E8E
RGBrgb(53, 30, 142)
HSLhsl(252, 65%, 34%)
HSVhsv(252, 79%, 56%)
CMYKcmyk(62.7%, 78.9%, 0%, 44.3%)
CIE-LABlab(22.44, 42.03, -57.70)
CIE-LCHlch(22.44, 71.38, 306.07°)
OKLaboklab(35.01% 0.0369 -0.1664)
OKLCHoklch(35.01% 0.17 282.5)
XYZxyz(6.8134, 3.6379, 25.9291)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351E8E #778E1E
analogous
#1E3F8E #351E8E #6D1E8E
triadic
#351E8E #8E351E #1E8E35
tetradic
#351E8E #8E1E3F #778E1E #1E8E6D
square
#351E8E #8E1E3F #778E1E #1E8E6D
split-complementary
#351E8E #8E6D1E #3F8E1E
monochromatic
#0F0929 #22135B #351E8E #4829C1 #6A4DD9

Accessibility & contrast

On white

12.16
#351E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#351E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351E8E
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351E8E#FFFFFF#000000##FFFFFF
##351E8E1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#00328C
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #351e8e;
/* rgb */ color: rgb(53, 30, 142);
/* oklch */ color: oklch(35.0% 0.170 282.5);
Tailwind
colors: {
  custom: {
    50: '#785db0',
    500: '#351e8e',
    950: '#000000',
  },
}
SCSS
$custom: #351e8e;
$custom-light: #785db0;
$custom-dark: #000000;
JSON
{
  "hex": "#351e8e",
  "rgb": {
    "r": 53,
    "g": 30,
    "b": 142
  },
  "hsl": {
    "h": 252.321,
    "s": 65.116,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3501,
    "c": 0.17044,
    "h": 282.5
  },
  "luminance": 0.03638
}

Semantic roles & 50–950 ramp

primary
#351E8E
secondary
#A5BC4C
accent
#E840C6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #351E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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