#351E8D#351E8D

#351E8D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.169 H 282.7°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#351E8D
RGBrgb(53, 30, 141)
HSLhsl(252, 65%, 34%)
HSVhsv(252, 79%, 55%)
CMYKcmyk(62.4%, 78.7%, 0%, 44.7%)
CIE-LABlab(22.33, 41.72, -57.25)
CIE-LCHlch(22.33, 70.84, 306.08°)
OKLaboklab(34.9% 0.0372 -0.1651)
OKLCHoklch(34.9% 0.169 282.7)
XYZxyz(6.7387, 3.6080, 25.5355)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351E8D #768D1E
analogous
#1E3F8D #351E8D #6C1E8D
triadic
#351E8D #8D351E #1E8D35
tetradic
#351E8D #8D1E3F #768D1E #1E8D6C
square
#351E8D #8D1E3F #768D1E #1E8D6C
split-complementary
#351E8D #8D6C1E #3F8D1E
monochromatic
#0F0928 #22135B #351E8D #4829BF #6A4CD9

Accessibility & contrast

On white

12.20
#351E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#351E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351E8D
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351E8D#FFFFFF#000000##FFFFFF
##351E8D1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00328B
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #351e8d;
/* rgb */ color: rgb(53, 30, 141);
/* oklch */ color: oklch(34.9% 0.169 282.7);
Tailwind
colors: {
  custom: {
    50: '#785daf',
    500: '#351e8d',
    950: '#000000',
  },
}
SCSS
$custom: #351e8d;
$custom-light: #785daf;
$custom-dark: #000000;
JSON
{
  "hex": "#351e8d",
  "rgb": {
    "r": 53,
    "g": 30,
    "b": 141
  },
  "hsl": {
    "h": 252.432,
    "s": 64.912,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34904,
    "c": 0.16922,
    "h": 282.7
  },
  "luminance": 0.03609
}

Semantic roles & 50–950 ramp

primary
#351E8D
secondary
#A4BC4B
accent
#E840C5
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #351E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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