#351F8E#351F8E

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

Color values

HEX#351F8E
RGBrgb(53, 31, 142)
HSLhsl(252, 64%, 34%)
HSVhsv(252, 78%, 56%)
CMYKcmyk(62.7%, 78.2%, 0%, 44.3%)
CIE-LABlab(22.62, 41.51, -57.40)
CIE-LCHlch(22.62, 70.84, 305.88°)
OKLaboklab(35.14% 0.0363 -0.1655)
OKLCHoklch(35.14% 0.169 282.4)
XYZxyz(6.8391, 3.6894, 25.9377)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351F8E #788E1F
analogous
#1F418E #351F8E #6D1F8E
triadic
#351F8E #8E351F #1F8E35
tetradic
#351F8E #8E1F41 #788E1F #1F8E6D
square
#351F8E #8E1F41 #788E1F #1F8E6D
split-complementary
#351F8E #8E6D1F #418E1F
monochromatic
#10092A #22145C #351F8E #482AC0 #6A4FD9

Accessibility & contrast

On white

12.08
#351F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#351F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351F8E
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351F8E#FFFFFF#000000##FFFFFF
##351F8E1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #351f8e;
/* rgb */ color: rgb(53, 31, 142);
/* oklch */ color: oklch(35.1% 0.169 282.4);
Tailwind
colors: {
  custom: {
    50: '#785eb0',
    500: '#351f8e',
    950: '#000000',
  },
}
SCSS
$custom: #351f8e;
$custom-light: #785eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#351f8e",
  "rgb": {
    "r": 53,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 251.892,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35136,
    "c": 0.16947,
    "h": 282.4
  },
  "luminance": 0.0369
}

Semantic roles & 50–950 ramp

primary
#351F8E
secondary
#A6BB4D
accent
#E741C6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #351F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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