#351A8F#351A8F

#351A8F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.175 H 282.9°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#351A8F
RGBrgb(53, 26, 143)
HSLhsl(254, 69%, 33%)
HSVhsv(254, 82%, 56%)
CMYKcmyk(62.9%, 81.8%, 0%, 43.9%)
CIE-LABlab(21.87, 44.29, -59.26)
CIE-LCHlch(21.87, 73.98, 306.77°)
OKLaboklab(34.64% 0.0391 -0.1709)
OKLCHoklch(34.64% 0.175 282.9)
XYZxyz(6.7940, 3.4784, 26.2947)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351A8F #748F1A
analogous
#1A398F #351A8F #6F1A8F
triadic
#351A8F #8F351A #1A8F35
tetradic
#351A8F #8F1A39 #748F1A #1A8F6F
square
#351A8F #8F1A39 #748F1A #1A8F6F
split-complementary
#351A8F #8F6F1A #398F1A
monochromatic
#0F0727 #22115B #351A8F #4823C3 #6946DD

Accessibility & contrast

On white

12.38
#351A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#351A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351A8F
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351A8F#FFFFFF#000000##FFFFFF
##351A8F1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#00308D
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #351a8f;
/* rgb */ color: rgb(53, 26, 143);
/* oklch */ color: oklch(34.6% 0.175 282.9);
Tailwind
colors: {
  custom: {
    50: '#795bb1',
    500: '#351a8f',
    950: '#000000',
  },
}
SCSS
$custom: #351a8f;
$custom-light: #795bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#351a8f",
  "rgb": {
    "r": 53,
    "g": 26,
    "b": 143
  },
  "hsl": {
    "h": 253.846,
    "s": 69.231,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34645,
    "c": 0.17532,
    "h": 282.9
  },
  "luminance": 0.03479
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #351A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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