#351B94#351B94

#351B94 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.180 H 281.8°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#351B94
RGBrgb(53, 27, 148)
HSLhsl(253, 69%, 34%)
HSVhsv(253, 82%, 58%)
CMYKcmyk(64.2%, 81.8%, 0%, 42%)
CIE-LABlab(22.58, 45.31, -61.18)
CIE-LCHlch(22.58, 76.14, 306.52°)
OKLaboklab(35.3% 0.0369 -0.1765)
OKLCHoklch(35.3% 0.18 281.8)
XYZxyz(7.2038, 3.6783, 28.3416)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351B94 #7A941B
analogous
#1B3D94 #351B94 #721B94
triadic
#351B94 #94351B #1B9435
tetradic
#351B94 #941B3D #7A941B #1B9472
square
#351B94 #941B3D #7A941B #1B9472
split-complementary
#351B94 #94721B #3D941B
monochromatic
#10082C #221260 #351B94 #4824C8 #6B4BDE

Accessibility & contrast

On white

12.10
#351B94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#351B94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351B94
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351B94#FFFFFF#000000##FFFFFF
##351B941.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A97
Deuteranopia (green-blind)
#003292
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #351b94;
/* rgb */ color: rgb(53, 27, 148);
/* oklch */ color: oklch(35.3% 0.180 281.8);
Tailwind
colors: {
  custom: {
    50: '#7a5cb5',
    500: '#351b94',
    950: '#000000',
  },
}
SCSS
$custom: #351b94;
$custom-light: #7a5cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#351b94",
  "rgb": {
    "r": 53,
    "g": 27,
    "b": 148
  },
  "hsl": {
    "h": 252.893,
    "s": 69.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35302,
    "c": 0.18034,
    "h": 281.8
  },
  "luminance": 0.03679
}

Semantic roles & 50–950 ramp

primary
#351B94
secondary
#A7C04B
accent
#EC3CC6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #351B94

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

Preview Lab → · Contrast checker → · Palette generator →

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