#351B89#351B89

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

Color values

HEX#351B89
RGBrgb(53, 27, 137)
HSLhsl(254, 67%, 32%)
HSVhsv(254, 80%, 54%)
CMYKcmyk(61.3%, 80.3%, 0%, 46.3%)
CIE-LABlab(21.38, 42.01, -56.32)
CIE-LCHlch(21.38, 70.26, 306.72°)
OKLaboklab(34.11% 0.0404 -0.1623)
OKLCHoklch(34.11% 0.167 284)
XYZxyz(6.3741, 3.3465, 23.9721)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351B89 #6F891B
analogous
#1B3889 #351B89 #6C1B89
triadic
#351B89 #89351B #1B8935
tetradic
#351B89 #891B38 #6F891B #1B896C
square
#351B89 #891B38 #6F891B #1B896C
split-complementary
#351B89 #896C1B #38891B
monochromatic
#0D0723 #211156 #351B89 #4925BC #6844DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##351B89#FFFFFF#000000##FFFFFF
##351B891.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)
#00368C
Deuteranopia (green-blind)
#003087
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #351b89;
/* rgb */ color: rgb(53, 27, 137);
/* oklch */ color: oklch(34.1% 0.167 284.0);
Tailwind
colors: {
  custom: {
    50: '#785bad',
    500: '#351b89',
    950: '#000000',
  },
}
SCSS
$custom: #351b89;
$custom-light: #785bad;
$custom-dark: #000000;
JSON
{
  "hex": "#351b89",
  "rgb": {
    "r": 53,
    "g": 27,
    "b": 137
  },
  "hsl": {
    "h": 254.182,
    "s": 67.073,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34114,
    "c": 0.16728,
    "h": 284
  },
  "luminance": 0.03347
}

Semantic roles & 50–950 ramp

primary
#351B89
secondary
#9FBC44
accent
#EA3EC1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #351B89

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

Preview Lab → · Contrast checker → · Palette generator →

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