#351F83#351F83

#351F83 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.0% C 0.156 H 284.6°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#351F83
RGBrgb(53, 31, 131)
HSLhsl(253, 62%, 32%)
HSVhsv(253, 76%, 51%)
CMYKcmyk(59.5%, 76.3%, 0%, 48.6%)
CIE-LABlab(21.49, 38.09, -52.37)
CIE-LCHlch(21.49, 64.76, 306.03°)
OKLaboklab(34% 0.0392 -0.1508)
OKLCHoklch(34% 0.156 284.6)
XYZxyz(6.0537, 3.3752, 21.8008)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351F83 #6D831F
analogous
#1F3B83 #351F83 #671F83
triadic
#351F83 #83351F #1F8335
tetradic
#351F83 #831F3B #6D831F #1F8367
square
#351F83 #831F3B #6D831F #1F8367
split-complementary
#351F83 #83671F #3B831F
monochromatic
#0D0820 #211352 #351F83 #492BB4 #6749D4

Accessibility & contrast

On white

12.54
#351F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#351F83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351F83
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351F83#FFFFFF#000000##FFFFFF
##351F831.0012.541.6812.54
#FFFFFF12.541.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003686
Deuteranopia (green-blind)
#003081
Tritanopia (blue-blind)
#0A3B4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #351f83;
/* rgb */ color: rgb(53, 31, 131);
/* oklch */ color: oklch(34.0% 0.156 284.6);
Tailwind
colors: {
  custom: {
    50: '#765da8',
    500: '#351f83',
    950: '#000000',
  },
}
SCSS
$custom: #351f83;
$custom-light: #765da8;
$custom-dark: #000000;
JSON
{
  "hex": "#351f83",
  "rgb": {
    "r": 53,
    "g": 31,
    "b": 131
  },
  "hsl": {
    "h": 253.2,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34002,
    "c": 0.15585,
    "h": 284.6
  },
  "luminance": 0.03376
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #351F83

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

Preview Lab → · Contrast checker → · Palette generator →

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