#351A8E#351A8E

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

Color values

HEX#351A8E
RGBrgb(53, 26, 142)
HSLhsl(254, 69%, 33%)
HSVhsv(254, 82%, 56%)
CMYKcmyk(62.7%, 81.7%, 0%, 44.3%)
CIE-LABlab(21.76, 43.99, -58.82)
CIE-LCHlch(21.76, 73.45, 306.79°)
OKLaboklab(34.54% 0.0394 -0.1696)
OKLCHoklch(34.54% 0.174 283.1)
XYZxyz(6.7186, 3.4482, 25.8975)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351A8E #738E1A
analogous
#1A398E #351A8E #6F1A8E
triadic
#351A8E #8E351A #1A8E35
tetradic
#351A8E #8E1A39 #738E1A #1A8E6F
square
#351A8E #8E1A39 #738E1A #1A8E6F
split-complementary
#351A8E #8E6F1A #398E1A
monochromatic
#0E0727 #22115A #351A8E #4823C2 #6945DD

Accessibility & contrast

On white

12.43
#351A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #351A8E
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351A8E#FFFFFF#000000##FFFFFF
##351A8E1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #351a8e;
/* rgb */ color: rgb(53, 26, 142);
/* oklch */ color: oklch(34.5% 0.174 283.1);
Tailwind
colors: {
  custom: {
    50: '#795bb0',
    500: '#351a8e',
    950: '#000000',
  },
}
SCSS
$custom: #351a8e;
$custom-light: #795bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#351a8e",
  "rgb": {
    "r": 53,
    "g": 26,
    "b": 142
  },
  "hsl": {
    "h": 253.966,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34536,
    "c": 0.17414,
    "h": 283.1
  },
  "luminance": 0.03449
}

Semantic roles & 50–950 ramp

primary
#351A8E
secondary
#A2BE45
accent
#EC3CC3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #351A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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