#351F98#351F98

#351F98 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.182 H 280.6°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#351F98
RGBrgb(53, 31, 152)
HSLhsl(251, 66%, 36%)
HSVhsv(251, 80%, 60%)
CMYKcmyk(65.1%, 79.6%, 0%, 40.4%)
CIE-LABlab(23.68, 44.59, -61.83)
CIE-LCHlch(23.68, 76.23, 305.80°)
OKLaboklab(36.2% 0.0334 -0.1784)
OKLCHoklch(36.2% 0.182 280.6)
XYZxyz(7.6239, 4.0033, 30.0706)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351F98 #82981F
analogous
#1F4598 #351F98 #711F98
triadic
#351F98 #98351F #1F9835
tetradic
#351F98 #981F45 #82981F #1F9871
square
#351F98 #981F45 #82981F #1F9871
split-complementary
#351F98 #98711F #45981F
monochromatic
#120A32 #231565 #351F98 #4729CB #6E55DC

Accessibility & contrast

On white

11.66
#351F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#351F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351F98
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351F98#FFFFFF#000000##FFFFFF
##351F981.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9B
Deuteranopia (green-blind)
#003496
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #351f98;
/* rgb */ color: rgb(53, 31, 152);
/* oklch */ color: oklch(36.2% 0.182 280.6);
Tailwind
colors: {
  custom: {
    50: '#7a5fb8',
    500: '#351f98',
    950: '#000000',
  },
}
SCSS
$custom: #351f98;
$custom-light: #7a5fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#351f98",
  "rgb": {
    "r": 53,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 250.909,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36199,
    "c": 0.18155,
    "h": 280.6
  },
  "luminance": 0.04004
}

Semantic roles & 50–950 ramp

primary
#351F98
secondary
#ACC053
accent
#E93FCA
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #351F98

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

Preview Lab → · Contrast checker → · Palette generator →

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