#351F72#351F72

#351F72 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.3% C 0.134 H 288.8°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#351F72
RGBrgb(53, 31, 114)
HSLhsl(256, 57%, 28%)
HSVhsv(256, 73%, 45%)
CMYKcmyk(53.5%, 72.8%, 0%, 55.3%)
CIE-LABlab(19.85, 32.76, -44.22)
CIE-LCHlch(19.85, 55.03, 306.53°)
OKLaboklab(32.34% 0.0431 -0.1269)
OKLCHoklch(32.34% 0.134 288.8)
XYZxyz(4.9946, 2.9515, 16.2229)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351F72 #5C721F
analogous
#1F3272 #351F72 #5E1F72
triadic
#351F72 #72351F #1F7235
tetradic
#351F72 #721F32 #5C721F #1F725E
square
#351F72 #721F32 #5C721F #1F725E
split-complementary
#351F72 #725E1F #32721F
monochromatic
#0B0718 #1F1242 #351F72 #4B2CA2 #6540CB

Accessibility & contrast

On white

13.20
#351F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#351F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351F72
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351F72#FFFFFF#000000##FFFFFF
##351F721.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003274
Deuteranopia (green-blind)
#002E70
Tritanopia (blue-blind)
#1F3446
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #351f72;
/* rgb */ color: rgb(53, 31, 114);
/* oklch */ color: oklch(32.3% 0.134 288.8);
Tailwind
colors: {
  custom: {
    50: '#735c9b',
    500: '#351f72',
    950: '#000000',
  },
}
SCSS
$custom: #351f72;
$custom-light: #735c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#351f72",
  "rgb": {
    "r": 53,
    "g": 31,
    "b": 114
  },
  "hsl": {
    "h": 255.904,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32337,
    "c": 0.13407,
    "h": 288.8
  },
  "luminance": 0.02952
}

Semantic roles & 50–950 ramp

primary
#351F72
secondary
#8DA647
accent
#E047B8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #351F72

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

Preview Lab → · Contrast checker → · Palette generator →

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