#351B87#351B87

#351B87 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.165 H 284.4°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#351B87
RGBrgb(53, 27, 135)
HSLhsl(254, 67%, 32%)
HSVhsv(254, 80%, 53%)
CMYKcmyk(60.7%, 80%, 0%, 47.1%)
CIE-LABlab(21.17, 41.41, -55.41)
CIE-LCHlch(21.17, 69.18, 306.77°)
OKLaboklab(33.9% 0.041 -0.1597)
OKLCHoklch(33.9% 0.165 284.4)
XYZxyz(6.2320, 3.2896, 23.2235)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351B87 #6D871B
analogous
#1B3787 #351B87 #6B1B87
triadic
#351B87 #87351B #1B8735
tetradic
#351B87 #871B37 #6D871B #1B876B
square
#351B87 #871B37 #6D871B #1B876B
split-complementary
#351B87 #876B1B #37871B
monochromatic
#0D0721 #211154 #351B87 #4925BA #6743D9

Accessibility & contrast

On white

12.67
#351B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#351B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351B87
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351B87#FFFFFF#000000##FFFFFF
##351B871.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#002F85
Tritanopia (blue-blind)
#023B51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #351b87;
/* rgb */ color: rgb(53, 27, 135);
/* oklch */ color: oklch(33.9% 0.165 284.4);
Tailwind
colors: {
  custom: {
    50: '#775bab',
    500: '#351b87',
    950: '#000000',
  },
}
SCSS
$custom: #351b87;
$custom-light: #775bab;
$custom-dark: #000000;
JSON
{
  "hex": "#351b87",
  "rgb": {
    "r": 53,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 254.444,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33902,
    "c": 0.16487,
    "h": 284.4
  },
  "luminance": 0.0329
}

Semantic roles & 50–950 ramp

primary
#351B87
secondary
#9EBA44
accent
#EA3EC0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #351B87

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

Preview Lab → · Contrast checker → · Palette generator →

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