#351F76#351F76

#351F76 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.139 H 287.7°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#351F76
RGBrgb(53, 31, 118)
HSLhsl(255, 58%, 29%)
HSVhsv(255, 74%, 46%)
CMYKcmyk(55.1%, 73.7%, 0%, 53.7%)
CIE-LABlab(20.22, 34.02, -46.18)
CIE-LCHlch(20.22, 57.36, 306.37°)
OKLaboklab(32.72% 0.0423 -0.1327)
OKLCHoklch(32.72% 0.139 287.7)
XYZxyz(5.2272, 3.0446, 17.4483)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351F76 #60761F
analogous
#1F3576 #351F76 #611F76
triadic
#351F76 #76351F #1F7635
tetradic
#351F76 #761F35 #60761F #1F7661
square
#351F76 #761F35 #60761F #1F7661
split-complementary
#351F76 #76611F #35761F
monochromatic
#0B0618 #1F1246 #351F76 #4B2CA6 #6542CD

Accessibility & contrast

On white

13.05
#351F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#351F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351F76
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351F76#FFFFFF#000000##FFFFFF
##351F761.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003379
Deuteranopia (green-blind)
#002E74
Tritanopia (blue-blind)
#1B3648
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #351f76;
/* rgb */ color: rgb(53, 31, 118);
/* oklch */ color: oklch(32.7% 0.139 287.7);
Tailwind
colors: {
  custom: {
    50: '#745d9e',
    500: '#351f76',
    950: '#000000',
  },
}
SCSS
$custom: #351f76;
$custom-light: #745d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#351f76",
  "rgb": {
    "r": 53,
    "g": 31,
    "b": 118
  },
  "hsl": {
    "h": 255.172,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32718,
    "c": 0.13928,
    "h": 287.7
  },
  "luminance": 0.03045
}

Semantic roles & 50–950 ramp

primary
#351F76
secondary
#91AA47
accent
#E246BA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #351F76

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

Preview Lab → · Contrast checker → · Palette generator →

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