#351B4F#351B4F

#351B4F is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.7% C 0.093 H 304.2°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#351B4F
RGBrgb(53, 27, 79)
HSLhsl(270, 49%, 21%)
HSVhsv(270, 66%, 31%)
CMYKcmyk(32.9%, 65.8%, 0%, 69%)
CIE-LABlab(16.03, 24.58, -27.23)
CIE-LCHlch(16.03, 36.68, 312.07°)
OKLaboklab(28.66% 0.0523 -0.077)
OKLCHoklch(28.66% 0.093 304.2)
XYZxyz(3.2711, 2.1053, 7.6296)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351B4F #354F1B
analogous
#1B1B4F #351B4F #4F1B4F
triadic
#351B4F #4F351B #1B4F35
tetradic
#351B4F #4F1B1B #354F1B #1B4F4F
square
#351B4F #4F1B1B #354F1B #1B4F4F
split-complementary
#351B4F #4F4F1B #1B4F1B
monochromatic
#0F0817 #160B21 #351B4F #542B7D #723AAA

Accessibility & contrast

On white

14.78
#351B4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#351B4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351B4F
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351B4F#FFFFFF#000000##FFFFFF
##351B4F1.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032751
Deuteranopia (green-blind)
#0F284E
Tritanopia (blue-blind)
#302632
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #351b4f;
/* rgb */ color: rgb(53, 27, 79);
/* oklch */ color: oklch(28.7% 0.093 304.2);
Tailwind
colors: {
  custom: {
    50: '#6e5981',
    500: '#351b4f',
    950: '#000000',
  },
}
SCSS
$custom: #351b4f;
$custom-light: #6e5981;
$custom-dark: #000000;
JSON
{
  "hex": "#351b4f",
  "rgb": {
    "r": 53,
    "g": 27,
    "b": 79
  },
  "hsl": {
    "h": 270,
    "s": 49.057,
    "l": 20.784
  },
  "oklch": {
    "l": 0.28664,
    "c": 0.09308,
    "h": 304.2
  },
  "luminance": 0.02105
}

Semantic roles & 50–950 ramp

primary
#351B4F
secondary
#638541
accent
#D94F94
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #351B4F

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

Preview Lab → · Contrast checker → · Palette generator →

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