#351A8C#351A8C

#351A8C is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.172 H 283.5°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#351A8C
RGBrgb(53, 26, 140)
HSLhsl(254, 69%, 33%)
HSVhsv(254, 81%, 55%)
CMYKcmyk(62.1%, 81.4%, 0%, 45.1%)
CIE-LABlab(21.54, 43.40, -57.93)
CIE-LCHlch(21.54, 72.39, 306.84°)
OKLaboklab(34.32% 0.0401 -0.167)
OKLCHoklch(34.32% 0.172 283.5)
XYZxyz(6.5698, 3.3887, 25.1137)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351A8C #718C1A
analogous
#1A388C #351A8C #6E1A8C
triadic
#351A8C #8C351A #1A8C35
tetradic
#351A8C #8C1A38 #718C1A #1A8C6E
square
#351A8C #8C1A38 #718C1A #1A8C6E
split-complementary
#351A8C #8C6E1A #388C1A
monochromatic
#0E0725 #211058 #351A8C #4924C0 #6844DC

Accessibility & contrast

On white

12.52
#351A8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#351A8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351A8C
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351A8C#FFFFFF#000000##FFFFFF
##351A8C1.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378F
Deuteranopia (green-blind)
#00308A
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #351a8c;
/* rgb */ color: rgb(53, 26, 140);
/* oklch */ color: oklch(34.3% 0.172 283.5);
Tailwind
colors: {
  custom: {
    50: '#785baf',
    500: '#351a8c',
    950: '#000000',
  },
}
SCSS
$custom: #351a8c;
$custom-light: #785baf;
$custom-dark: #000000;
JSON
{
  "hex": "#351a8c",
  "rgb": {
    "r": 53,
    "g": 26,
    "b": 140
  },
  "hsl": {
    "h": 254.211,
    "s": 68.675,
    "l": 32.549
  },
  "oklch": {
    "l": 0.3432,
    "c": 0.17178,
    "h": 283.5
  },
  "luminance": 0.03389
}

Semantic roles & 50–950 ramp

primary
#351A8C
secondary
#A1BE44
accent
#EC3CC2
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #351A8C

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

Preview Lab → · Contrast checker → · Palette generator →

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