#351F5B#351F5B

#351F5B is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.3% C 0.103 H 296.7°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#351F5B
RGBrgb(53, 31, 91)
HSLhsl(262, 49%, 24%)
HSVhsv(262, 66%, 36%)
CMYKcmyk(41.8%, 65.9%, 0%, 64.3%)
CIE-LABlab(17.88, 25.61, -32.34)
CIE-LCHlch(17.88, 41.25, 308.38°)
OKLaboklab(30.3% 0.0462 -0.092)
OKLCHoklch(30.3% 0.103 296.7)
XYZxyz(3.8460, 2.4921, 10.1739)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351F5B #455B1F
analogous
#1F275B #351F5B #531F5B
triadic
#351F5B #5B351F #1F5B35
tetradic
#351F5B #5B1F27 #455B1F #1F5B53
square
#351F5B #5B1F27 #455B1F #1F5B53
split-complementary
#351F5B #5B531F #275B1F
monochromatic
#0D0817 #1A0F2D #351F5B #502F89 #6A3EB6

Accessibility & contrast

On white

14.01
#351F5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#351F5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351F5B
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351F5B#FFFFFF#000000##FFFFFF
##351F5B1.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5D
Deuteranopia (green-blind)
#032B5A
Tritanopia (blue-blind)
#2C2C39
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #351f5b;
/* rgb */ color: rgb(53, 31, 91);
/* oklch */ color: oklch(30.3% 0.103 296.7);
Tailwind
colors: {
  custom: {
    50: '#705c8a',
    500: '#351f5b',
    950: '#000000',
  },
}
SCSS
$custom: #351f5b;
$custom-light: #705c8a;
$custom-dark: #000000;
JSON
{
  "hex": "#351f5b",
  "rgb": {
    "r": 53,
    "g": 31,
    "b": 91
  },
  "hsl": {
    "h": 262,
    "s": 49.18,
    "l": 23.922
  },
  "oklch": {
    "l": 0.30304,
    "c": 0.10298,
    "h": 296.7
  },
  "luminance": 0.02492
}

Semantic roles & 50–950 ramp

primary
#351F5B
secondary
#759046
accent
#D94FA6
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #351F5B

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

Preview Lab → · Contrast checker → · Palette generator →

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