#351257#351257

#351257 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.117 H 302.4°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#351257
RGBrgb(53, 18, 87)
HSLhsl(270, 66%, 21%)
HSVhsv(270, 79%, 34%)
CMYKcmyk(39.1%, 79.3%, 0%, 65.9%)
CIE-LABlab(14.83, 31.92, -34.60)
CIE-LCHlch(14.83, 47.08, 312.70°)
OKLaboklab(28.01% 0.0627 -0.0986)
OKLCHoklch(28.01% 0.117 302.4)
XYZxyz(3.4044, 1.8776, 9.1980)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351257 #345712
analogous
#131257 #351257 #571256
triadic
#351257 #573512 #125735
tetradic
#351257 #571312 #345712 #125657
square
#351257 #571312 #345712 #125657
split-complementary
#351257 #565712 #125713
monochromatic
#0F0519 #160824 #351257 #541C8A #7327BC

Accessibility & contrast

On white

15.27
#351257 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#351257 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351257
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351257#FFFFFF#000000##FFFFFF
##3512571.0015.271.3815.27
#FFFFFF15.271.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002559
Deuteranopia (green-blind)
#002556
Tritanopia (blue-blind)
#2E2333
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #351257;
/* rgb */ color: rgb(53, 18, 87);
/* oklch */ color: oklch(28.0% 0.117 302.4);
Tailwind
colors: {
  custom: {
    50: '#705487',
    500: '#351257',
    950: '#000000',
  },
}
SCSS
$custom: #351257;
$custom-light: #705487;
$custom-dark: #000000;
JSON
{
  "hex": "#351257",
  "rgb": {
    "r": 53,
    "g": 18,
    "b": 87
  },
  "hsl": {
    "h": 270.435,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.28009,
    "c": 0.11686,
    "h": 302.4
  },
  "luminance": 0.01878
}

Semantic roles & 50–950 ramp

primary
#351257
secondary
#629035
accent
#E93F93
background
#F7F4F8
surface
#EDE8EF
border
#C8C4CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #351257

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

Preview Lab → · Contrast checker → · Palette generator →

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