#351F82#351F82

#351F82 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.155 H 284.8°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#351F82
RGBrgb(53, 31, 130)
HSLhsl(253, 61%, 32%)
HSVhsv(253, 76%, 51%)
CMYKcmyk(59.2%, 76.2%, 0%, 49%)
CIE-LABlab(21.39, 37.78, -51.90)
CIE-LCHlch(21.39, 64.20, 306.05°)
OKLaboklab(33.9% 0.0395 -0.1495)
OKLCHoklch(33.9% 0.155 284.8)
XYZxyz(5.9862, 3.3482, 21.4456)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351F82 #6C821F
analogous
#1F3B82 #351F82 #671F82
triadic
#351F82 #82351F #1F8235
tetradic
#351F82 #821F3B #6C821F #1F8267
square
#351F82 #821F3B #6C821F #1F8267
split-complementary
#351F82 #82671F #3B821F
monochromatic
#0D071F #211351 #351F82 #492BB3 #6748D3

Accessibility & contrast

On white

12.58
#351F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#351F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351F82
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351F82#FFFFFF#000000##FFFFFF
##351F821.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003685
Deuteranopia (green-blind)
#003080
Tritanopia (blue-blind)
#0C3A4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #351f82;
/* rgb */ color: rgb(53, 31, 130);
/* oklch */ color: oklch(33.9% 0.155 284.8);
Tailwind
colors: {
  custom: {
    50: '#765da7',
    500: '#351f82',
    950: '#000000',
  },
}
SCSS
$custom: #351f82;
$custom-light: #765da7;
$custom-dark: #000000;
JSON
{
  "hex": "#351f82",
  "rgb": {
    "r": 53,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 253.333,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33901,
    "c": 0.15459,
    "h": 284.8
  },
  "luminance": 0.03349
}

Semantic roles & 50–950 ramp

primary
#351F82
secondary
#9DB548
accent
#E543C1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #351F82

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

Preview Lab → · Contrast checker → · Palette generator →

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