#351B8C#351B8C

#351B8C is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.171 H 283.3°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#351B8C
RGBrgb(53, 27, 140)
HSLhsl(254, 68%, 33%)
HSVhsv(254, 81%, 55%)
CMYKcmyk(62.1%, 80.7%, 0%, 45.1%)
CIE-LABlab(21.70, 42.92, -57.66)
CIE-LCHlch(21.70, 71.88, 306.66°)
OKLaboklab(34.44% 0.0395 -0.1662)
OKLCHoklch(34.44% 0.171 283.3)
XYZxyz(6.5923, 3.4338, 25.1213)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351B8C #728C1B
analogous
#1B3A8C #351B8C #6D1B8C
triadic
#351B8C #8C351B #1B8C35
tetradic
#351B8C #8C1B3A #728C1B #1B8C6D
square
#351B8C #8C1B3A #728C1B #1B8C6D
split-complementary
#351B8C #8C6D1B #3A8C1B
monochromatic
#0E0725 #221159 #351B8C #4825BF #6846DB

Accessibility & contrast

On white

12.45
#351B8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#351B8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351B8C
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351B8C#FFFFFF#000000##FFFFFF
##351B8C1.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378F
Deuteranopia (green-blind)
#00308A
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #351b8c;
/* rgb */ color: rgb(53, 27, 140);
/* oklch */ color: oklch(34.4% 0.171 283.3);
Tailwind
colors: {
  custom: {
    50: '#785caf',
    500: '#351b8c',
    950: '#000000',
  },
}
SCSS
$custom: #351b8c;
$custom-light: #785caf;
$custom-dark: #000000;
JSON
{
  "hex": "#351b8c",
  "rgb": {
    "r": 53,
    "g": 27,
    "b": 140
  },
  "hsl": {
    "h": 253.805,
    "s": 67.665,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34435,
    "c": 0.17087,
    "h": 283.3
  },
  "luminance": 0.03434
}

Semantic roles & 50–950 ramp

primary
#351B8C
secondary
#A2BD46
accent
#EB3DC3
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #351B8C

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

Preview Lab → · Contrast checker → · Palette generator →

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