#351274#351274

#351274 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.151 H 290.8°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).

Color values

HEX#351274
RGBrgb(53, 18, 116)
HSLhsl(261, 73%, 26%)
HSVhsv(261, 84%, 45%)
CMYKcmyk(54.3%, 84.5%, 0%, 54.5%)
CIE-LABlab(17.69, 40.05, -49.05)
CIE-LCHlch(17.69, 63.32, 309.23°)
OKLaboklab(30.88% 0.0536 -0.141)
OKLCHoklch(30.88% 0.151 290.8)
XYZxyz(4.8360, 2.4502, 16.7377)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351274 #517412
analogous
#122074 #351274 #661274
triadic
#351274 #743512 #127435
tetradic
#351274 #741220 #517412 #127466
square
#351274 #741220 #517412 #127466
split-complementary
#351274 #746612 #207412
monochromatic
#0C041A #1D0A3F #351274 #4D1AA9 #6623DD

Accessibility & contrast

On white

14.09
#351274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#351274 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351274
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351274#FFFFFF#000000##FFFFFF
##3512741.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D77
Deuteranopia (green-blind)
#002972
Tritanopia (blue-blind)
#1E2F44
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #351274;
/* rgb */ color: rgb(53, 18, 116);
/* oklch */ color: oklch(30.9% 0.151 290.8);
Tailwind
colors: {
  custom: {
    50: '#74559d',
    500: '#351274',
    950: '#000000',
  },
}
SCSS
$custom: #351274;
$custom-light: #74559d;
$custom-dark: #000000;
JSON
{
  "hex": "#351274",
  "rgb": {
    "r": 53,
    "g": 18,
    "b": 116
  },
  "hsl": {
    "h": 261.429,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30882,
    "c": 0.15085,
    "h": 290.8
  },
  "luminance": 0.0245
}

Semantic roles & 50–950 ramp

primary
#351274
secondary
#81AB37
accent
#F038AE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #351274

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

Preview Lab → · Contrast checker → · Palette generator →

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