#351E8F#351E8F

#351E8F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.172 H 282.3°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#351E8F
RGBrgb(53, 30, 143)
HSLhsl(252, 65%, 34%)
HSVhsv(252, 79%, 56%)
CMYKcmyk(62.9%, 79%, 0%, 43.9%)
CIE-LABlab(22.54, 42.34, -58.14)
CIE-LCHlch(22.54, 71.92, 306.06°)
OKLaboklab(35.12% 0.0366 -0.1677)
OKLCHoklch(35.12% 0.172 282.3)
XYZxyz(6.8888, 3.6681, 26.3263)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351E8F #788F1E
analogous
#1E408F #351E8F #6E1E8F
triadic
#351E8F #8F351E #1E8F35
tetradic
#351E8F #8F1E40 #788F1E #1E8F6E
square
#351E8F #8F1E40 #788F1E #1E8F6E
split-complementary
#351E8F #8F6E1E #408F1E
monochromatic
#10092A #22135C #351E8F #4829C2 #6A4EDA

Accessibility & contrast

On white

12.11
#351E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #351E8F
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351E8F#FFFFFF#000000##FFFFFF
##351E8F1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#003F56
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #351e8f;
/* rgb */ color: rgb(53, 30, 143);
/* oklch */ color: oklch(35.1% 0.172 282.3);
Tailwind
colors: {
  custom: {
    50: '#795db1',
    500: '#351e8f',
    950: '#000000',
  },
}
SCSS
$custom: #351e8f;
$custom-light: #795db1;
$custom-dark: #000000;
JSON
{
  "hex": "#351e8f",
  "rgb": {
    "r": 53,
    "g": 30,
    "b": 143
  },
  "hsl": {
    "h": 252.212,
    "s": 65.318,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35116,
    "c": 0.17166,
    "h": 282.3
  },
  "luminance": 0.03669
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #351E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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