#351871#351871

#351871 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.141 H 290.7°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#351871
RGBrgb(53, 24, 113)
HSLhsl(260, 65%, 27%)
HSVhsv(260, 79%, 44%)
CMYKcmyk(53.1%, 78.8%, 0%, 55.7%)
CIE-LABlab(18.37, 36.32, -45.99)
CIE-LCHlch(18.37, 58.60, 308.30°)
OKLaboklab(31.26% 0.0499 -0.1321)
OKLCHoklch(31.26% 0.141 290.7)
XYZxyz(4.7746, 2.6022, 15.8703)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351871 #547118
analogous
#182771 #351871 #621871
triadic
#351871 #713518 #187135
tetradic
#351871 #711827 #547118 #187162
square
#351871 #711827 #547118 #187162
split-complementary
#351871 #716218 #277118
monochromatic
#0C0519 #1D0D3F #351871 #4D23A3 #6530D3

Accessibility & contrast

On white

13.81
#351871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#351871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351871
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351871#FFFFFF#000000##FFFFFF
##3518711.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#002B6F
Tritanopia (blue-blind)
#203043
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #351871;
/* rgb */ color: rgb(53, 24, 113);
/* oklch */ color: oklch(31.3% 0.141 290.7);
Tailwind
colors: {
  custom: {
    50: '#73589b',
    500: '#351871',
    950: '#000000',
  },
}
SCSS
$custom: #351871;
$custom-light: #73589b;
$custom-dark: #000000;
JSON
{
  "hex": "#351871",
  "rgb": {
    "r": 53,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 259.551,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31264,
    "c": 0.14121,
    "h": 290.7
  },
  "luminance": 0.02602
}

Semantic roles & 50–950 ramp

primary
#351871
secondary
#85A63E
accent
#E840B1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #351871

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

Preview Lab → · Contrast checker → · Palette generator →

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