#351F7E#351F7E

#351F7E is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.150 H 285.7°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#351F7E
RGBrgb(53, 31, 126)
HSLhsl(254, 61%, 31%)
HSVhsv(254, 75%, 49%)
CMYKcmyk(57.9%, 75.4%, 0%, 50.6%)
CIE-LABlab(20.99, 36.53, -50.02)
CIE-LCHlch(20.99, 61.94, 306.14°)
OKLaboklab(33.5% 0.0405 -0.144)
OKLCHoklch(33.5% 0.15 285.7)
XYZxyz(5.7229, 3.2429, 20.0590)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351F7E #687E1F
analogous
#1F387E #351F7E #641F7E
triadic
#351F7E #7E351F #1F7E35
tetradic
#351F7E #7E1F38 #687E1F #1F7E64
square
#351F7E #7E1F38 #687E1F #1F7E64
split-complementary
#351F7E #7E641F #387E1F
monochromatic
#0C071C #20134D #351F7E #4A2BAF #6646D1

Accessibility & contrast

On white

12.74
#351F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#351F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351F7E
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351F7E#FFFFFF#000000##FFFFFF
##351F7E1.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#13394C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #351f7e;
/* rgb */ color: rgb(53, 31, 126);
/* oklch */ color: oklch(33.5% 0.150 285.7);
Tailwind
colors: {
  custom: {
    50: '#755da4',
    500: '#351f7e',
    950: '#000000',
  },
}
SCSS
$custom: #351f7e;
$custom-light: #755da4;
$custom-dark: #000000;
JSON
{
  "hex": "#351f7e",
  "rgb": {
    "r": 53,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 253.895,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.335,
    "c": 0.14954,
    "h": 285.7
  },
  "luminance": 0.03243
}

Semantic roles & 50–950 ramp

primary
#351F7E
secondary
#99B148
accent
#E444BF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #351F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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