#351F9B#351F9B

#351F9B is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.185 H 280.1°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#351F9B
RGBrgb(53, 31, 155)
HSLhsl(251, 67%, 36%)
HSVhsv(251, 80%, 61%)
CMYKcmyk(65.8%, 80%, 0%, 39.2%)
CIE-LABlab(24.01, 45.50, -63.13)
CIE-LCHlch(24.01, 77.82, 305.78°)
OKLaboklab(36.52% 0.0325 -0.1822)
OKLCHoklch(36.52% 0.185 280.1)
XYZxyz(7.8727, 4.1028, 31.3810)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351F9B #859B1F
analogous
#1F479B #351F9B #731F9B
triadic
#351F9B #9B351F #1F9B35
tetradic
#351F9B #9B1F47 #859B1F #1F9B73
square
#351F9B #9B1F47 #859B1F #1F9B73
split-complementary
#351F9B #9B731F #479B1F
monochromatic
#120B35 #241568 #351F9B #4629CE #6F57DD

Accessibility & contrast

On white

11.53
#351F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#351F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351F9B
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351F9B#FFFFFF#000000##FFFFFF
##351F9B1.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9E
Deuteranopia (green-blind)
#003499
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #351f9b;
/* rgb */ color: rgb(53, 31, 155);
/* oklch */ color: oklch(36.5% 0.185 280.1);
Tailwind
colors: {
  custom: {
    50: '#7b5fba',
    500: '#351f9b',
    950: '#000000',
  },
}
SCSS
$custom: #351f9b;
$custom-light: #7b5fba;
$custom-dark: #000000;
JSON
{
  "hex": "#351f9b",
  "rgb": {
    "r": 53,
    "g": 31,
    "b": 155
  },
  "hsl": {
    "h": 250.645,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36523,
    "c": 0.18512,
    "h": 280.1
  },
  "luminance": 0.04103
}

Semantic roles & 50–950 ramp

primary
#351F9B
secondary
#AEC155
accent
#EA3ECB
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #351F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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