#351B81#351B81

#351B81 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.158 H 285.8°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#351B81
RGBrgb(53, 27, 129)
HSLhsl(255, 65%, 31%)
HSVhsv(255, 79%, 51%)
CMYKcmyk(58.9%, 79.1%, 0%, 49.4%)
CIE-LABlab(20.54, 39.59, -52.67)
CIE-LCHlch(20.54, 65.89, 306.94°)
OKLaboklab(33.27% 0.0428 -0.1517)
OKLCHoklch(33.27% 0.158 285.8)
XYZxyz(5.8214, 3.1254, 21.0611)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351B81 #67811B
analogous
#1B3481 #351B81 #681B81
triadic
#351B81 #81351B #1B8135
tetradic
#351B81 #811B34 #67811B #1B8168
square
#351B81 #811B34 #67811B #1B8168
split-complementary
#351B81 #81681B #34811B
monochromatic
#0B061C #20104E #351B81 #4A26B4 #663FD7

Accessibility & contrast

On white

12.92
#351B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#351B81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351B81
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351B81#FFFFFF#000000##FFFFFF
##351B811.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#002E7F
Tritanopia (blue-blind)
#0F384D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #351b81;
/* rgb */ color: rgb(53, 27, 129);
/* oklch */ color: oklch(33.3% 0.158 285.8);
Tailwind
colors: {
  custom: {
    50: '#765ba7',
    500: '#351b81',
    950: '#000000',
  },
}
SCSS
$custom: #351b81;
$custom-light: #765ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#351b81",
  "rgb": {
    "r": 53,
    "g": 27,
    "b": 129
  },
  "hsl": {
    "h": 255.294,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33274,
    "c": 0.1576,
    "h": 285.8
  },
  "luminance": 0.03126
}

Semantic roles & 50–950 ramp

primary
#351B81
secondary
#98B543
accent
#E83FBD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #351B81

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

Preview Lab → · Contrast checker → · Palette generator →

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