#351F77#351F77

#351F77 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.8% C 0.141 H 287.4°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#351F77
RGBrgb(53, 31, 119)
HSLhsl(255, 59%, 29%)
HSVhsv(255, 74%, 47%)
CMYKcmyk(55.5%, 73.9%, 0%, 53.3%)
CIE-LABlab(20.32, 34.33, -46.67)
CIE-LCHlch(20.32, 57.93, 306.34°)
OKLaboklab(32.81% 0.0421 -0.1341)
OKLCHoklch(32.81% 0.141 287.4)
XYZxyz(5.2870, 3.0685, 17.7629)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351F77 #61771F
analogous
#1F3577 #351F77 #611F77
triadic
#351F77 #77351F #1F7735
tetradic
#351F77 #771F35 #61771F #1F7761
square
#351F77 #771F35 #61771F #1F7761
split-complementary
#351F77 #77611F #35771F
monochromatic
#0B0618 #1F1246 #351F77 #4B2CA8 #6543CE

Accessibility & contrast

On white

13.01
#351F77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #351F77
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351F77#FFFFFF#000000##FFFFFF
##351F771.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337A
Deuteranopia (green-blind)
#002F75
Tritanopia (blue-blind)
#1B3648
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #351f77;
/* rgb */ color: rgb(53, 31, 119);
/* oklch */ color: oklch(32.8% 0.141 287.4);
Tailwind
colors: {
  custom: {
    50: '#745d9f',
    500: '#351f77',
    950: '#000000',
  },
}
SCSS
$custom: #351f77;
$custom-light: #745d9f;
$custom-dark: #000000;
JSON
{
  "hex": "#351f77",
  "rgb": {
    "r": 53,
    "g": 31,
    "b": 119
  },
  "hsl": {
    "h": 255,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32814,
    "c": 0.14058,
    "h": 287.4
  },
  "luminance": 0.03069
}

Semantic roles & 50–950 ramp

primary
#351F77
secondary
#92AB47
accent
#E246BB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #351F77

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

Preview Lab → · Contrast checker → · Palette generator →

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