#351B71#351B71

#351B71 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.138 H 290.0°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#351B71
RGBrgb(53, 27, 113)
HSLhsl(258, 61%, 27%)
HSVhsv(258, 76%, 44%)
CMYKcmyk(53.1%, 76.1%, 0%, 55.7%)
CIE-LABlab(18.94, 34.72, -45.06)
CIE-LCHlch(18.94, 56.89, 307.62°)
OKLaboklab(31.66% 0.0472 -0.1294)
OKLCHoklch(31.66% 0.138 290)
XYZxyz(4.8399, 2.7328, 15.8920)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351B71 #57711B
analogous
#1B2C71 #351B71 #601B71
triadic
#351B71 #71351B #1B7135
tetradic
#351B71 #711B2C #57711B #1B7160
square
#351B71 #711B2C #57711B #1B7160
split-complementary
#351B71 #71601B #2C711B
monochromatic
#0C0619 #1E0F40 #351B71 #4C27A2 #6537CF

Accessibility & contrast

On white

13.58
#351B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#351B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351B71
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351B71#FFFFFF#000000##FFFFFF
##351B711.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003074
Deuteranopia (green-blind)
#002C6F
Tritanopia (blue-blind)
#203244
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #351b71;
/* rgb */ color: rgb(53, 27, 113);
/* oklch */ color: oklch(31.7% 0.138 290.0);
Tailwind
colors: {
  custom: {
    50: '#735a9b',
    500: '#351b71',
    950: '#000000',
  },
}
SCSS
$custom: #351b71;
$custom-light: #735a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#351b71",
  "rgb": {
    "r": 53,
    "g": 27,
    "b": 113
  },
  "hsl": {
    "h": 258.14,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31663,
    "c": 0.13774,
    "h": 290
  },
  "luminance": 0.02733
}

Semantic roles & 50–950 ramp

primary
#351B71
secondary
#88A642
accent
#E543B4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #351B71

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

Preview Lab → · Contrast checker → · Palette generator →

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