#351B4E#351B4E

#351B4E is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.6% C 0.092 H 304.8°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#351B4E
RGBrgb(53, 27, 78)
HSLhsl(271, 49%, 21%)
HSVhsv(271, 65%, 31%)
CMYKcmyk(32.1%, 65.4%, 0%, 69.4%)
CIE-LABlab(15.96, 24.29, -26.66)
CIE-LCHlch(15.96, 36.07, 312.33°)
OKLaboklab(28.59% 0.0523 -0.0754)
OKLCHoklch(28.59% 0.092 304.8)
XYZxyz(3.2350, 2.0908, 7.4394)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351B4E #344E1B
analogous
#1B1B4E #351B4E #4E1B4D
triadic
#351B4E #4E351B #1B4E35
tetradic
#351B4E #4E1B1B #344E1B #1B4D4E
square
#351B4E #4E1B1B #344E1B #1B4D4E
split-complementary
#351B4E #4D4E1B #1B4E1B
monochromatic
#0F0817 #160B21 #351B4E #542B7B #733AA9

Accessibility & contrast

On white

14.81
#351B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #351B4E
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351B4E#FFFFFF#000000##FFFFFF
##351B4E1.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042750
Deuteranopia (green-blind)
#10284D
Tritanopia (blue-blind)
#312531
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #351b4e;
/* rgb */ color: rgb(53, 27, 78);
/* oklch */ color: oklch(28.6% 0.092 304.8);
Tailwind
colors: {
  custom: {
    50: '#6e5980',
    500: '#351b4e',
    950: '#000000',
  },
}
SCSS
$custom: #351b4e;
$custom-light: #6e5980;
$custom-dark: #000000;
JSON
{
  "hex": "#351b4e",
  "rgb": {
    "r": 53,
    "g": 27,
    "b": 78
  },
  "hsl": {
    "h": 270.588,
    "s": 48.571,
    "l": 20.588
  },
  "oklch": {
    "l": 0.28586,
    "c": 0.09174,
    "h": 304.8
  },
  "luminance": 0.02091
}

Semantic roles & 50–950 ramp

primary
#351B4E
secondary
#628441
accent
#D85093
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #351B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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