#351B8D#351B8D

#351B8D is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.172 H 283.1°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#351B8D
RGBrgb(53, 27, 141)
HSLhsl(254, 68%, 33%)
HSVhsv(254, 81%, 55%)
CMYKcmyk(62.4%, 80.9%, 0%, 44.7%)
CIE-LABlab(21.81, 43.22, -58.10)
CIE-LCHlch(21.81, 72.42, 306.64°)
OKLaboklab(34.54% 0.0391 -0.1675)
OKLCHoklch(34.54% 0.172 283.1)
XYZxyz(6.6664, 3.4634, 25.5113)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351B8D #738D1B
analogous
#1B3A8D #351B8D #6E1B8D
triadic
#351B8D #8D351B #1B8D35
tetradic
#351B8D #8D1B3A #738D1B #1B8D6E
square
#351B8D #8D1B3A #738D1B #1B8D6E
split-complementary
#351B8D #8D6E1B #3A8D1B
monochromatic
#0E0726 #22115A #351B8D #4825C0 #6947DC

Accessibility & contrast

On white

12.41
#351B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#351B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351B8D
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351B8D#FFFFFF#000000##FFFFFF
##351B8D1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#00308B
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #351b8d;
/* rgb */ color: rgb(53, 27, 141);
/* oklch */ color: oklch(34.5% 0.172 283.1);
Tailwind
colors: {
  custom: {
    50: '#785caf',
    500: '#351b8d',
    950: '#000000',
  },
}
SCSS
$custom: #351b8d;
$custom-light: #785caf;
$custom-dark: #000000;
JSON
{
  "hex": "#351b8d",
  "rgb": {
    "r": 53,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 253.684,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34542,
    "c": 0.17206,
    "h": 283.1
  },
  "luminance": 0.03464
}

Semantic roles & 50–950 ramp

primary
#351B8D
secondary
#A2BD46
accent
#EB3DC3
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #351B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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