#351894#351894

#351894 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 35.0% C 0.183 H 282.2°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#351894
RGBrgb(53, 24, 148)
HSLhsl(254, 72%, 34%)
HSVhsv(254, 84%, 58%)
CMYKcmyk(64.2%, 83.8%, 0%, 42%)
CIE-LABlab(22.12, 46.66, -61.95)
CIE-LCHlch(22.12, 77.56, 306.99°)
OKLaboklab(34.98% 0.0385 -0.1787)
OKLCHoklch(34.98% 0.183 282.2)
XYZxyz(7.1385, 3.5477, 28.3198)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351894 #779418
analogous
#183994 #351894 #731894
triadic
#351894 #943518 #189435
tetradic
#351894 #941839 #779418 #189473
square
#351894 #941839 #779418 #189473
split-complementary
#351894 #947318 #399418
monochromatic
#0F072B #220F5F #351894 #4821C9 #6A45E1

Accessibility & contrast

On white

12.28
#351894 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#351894 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351894
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351894#FFFFFF#000000##FFFFFF
##3518941.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003997
Deuteranopia (green-blind)
#003192
Tritanopia (blue-blind)
#003F58
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #351894;
/* rgb */ color: rgb(53, 24, 148);
/* oklch */ color: oklch(35.0% 0.183 282.2);
Tailwind
colors: {
  custom: {
    50: '#7a5bb5',
    500: '#351894',
    950: '#000000',
  },
}
SCSS
$custom: #351894;
$custom-light: #7a5bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#351894",
  "rgb": {
    "r": 53,
    "g": 24,
    "b": 148
  },
  "hsl": {
    "h": 254.032,
    "s": 72.093,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34983,
    "c": 0.18281,
    "h": 282.2
  },
  "luminance": 0.03548
}

Semantic roles & 50–950 ramp

primary
#351894
secondary
#A5C246
accent
#EF39C4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #351894

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

Preview Lab → · Contrast checker → · Palette generator →

#351894 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva