#351062#351062

#351062 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.132 H 297.8°. Best body text is #FFFFFF at 14.98:1 contrast (WCAG AA passes).

Color values

HEX#351062
RGBrgb(53, 16, 98)
HSLhsl(267, 72%, 22%)
HSVhsv(267, 84%, 38%)
CMYKcmyk(45.9%, 83.7%, 0%, 61.6%)
CIE-LABlab(15.54, 35.90, -40.81)
CIE-LCHlch(15.54, 54.35, 311.33°)
OKLaboklab(28.82% 0.0615 -0.1169)
OKLCHoklch(28.82% 0.132 297.8)
XYZxyz(3.8575, 2.0092, 11.7375)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351062 #3D6210
analogous
#101462 #351062 #5E1062
triadic
#351062 #623510 #106235
tetradic
#351062 #621014 #3D6210 #10625E
square
#351062 #621014 #3D6210 #10625E
split-complementary
#351062 #625E10 #146210
monochromatic
#0E041A #19072D #351062 #511997 #6E21CB

Accessibility & contrast

On white

14.98
#351062 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#351062 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351062
14.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351062#FFFFFF#000000##FFFFFF
##3510621.0014.981.4014.98
#FFFFFF14.981.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002764
Deuteranopia (green-blind)
#002660
Tritanopia (blue-blind)
#292739
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #351062;
/* rgb */ color: rgb(53, 16, 98);
/* oklch */ color: oklch(28.8% 0.132 297.8);
Tailwind
colors: {
  custom: {
    50: '#72538f',
    500: '#351062',
    950: '#000000',
  },
}
SCSS
$custom: #351062;
$custom-light: #72538f;
$custom-dark: #000000;
JSON
{
  "hex": "#351062",
  "rgb": {
    "r": 53,
    "g": 16,
    "b": 98
  },
  "hsl": {
    "h": 267.073,
    "s": 71.93,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28823,
    "c": 0.13206,
    "h": 297.8
  },
  "luminance": 0.02009
}

Semantic roles & 50–950 ramp

primary
#351062
secondary
#6C9B33
accent
#EF399D
background
#F7F4F8
surface
#EDE8F0
border
#C8C4CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #351062

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

Preview Lab → · Contrast checker → · Palette generator →

#351062 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva