#351158#351158

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

Color values

HEX#351158
RGBrgb(53, 17, 88)
HSLhsl(270, 68%, 21%)
HSVhsv(270, 81%, 35%)
CMYKcmyk(39.8%, 80.7%, 0%, 65.5%)
CIE-LABlab(14.75, 32.69, -35.41)
CIE-LCHlch(14.75, 48.19, 312.71°)
OKLaboklab(27.98% 0.0635 -0.101)
OKLCHoklch(27.98% 0.119 302.2)
XYZxyz(3.4297, 1.8624, 9.4094)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351158 #345811
analogous
#121158 #351158 #581157
triadic
#351158 #583511 #115835
tetradic
#351158 #581211 #345811 #115758
square
#351158 #581211 #345811 #115758
split-complementary
#351158 #575811 #115812
monochromatic
#0F051A #160725 #351158 #541B8B #7325BF

Accessibility & contrast

On white

15.30
#351158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#351158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351158
15.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351158#FFFFFF#000000##FFFFFF
##3511581.0015.301.3715.30
#FFFFFF15.301.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255A
Deuteranopia (green-blind)
#002557
Tritanopia (blue-blind)
#2E2333
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #351158;
/* rgb */ color: rgb(53, 17, 88);
/* oklch */ color: oklch(28.0% 0.119 302.2);
Tailwind
colors: {
  custom: {
    50: '#705388',
    500: '#351158',
    950: '#000000',
  },
}
SCSS
$custom: #351158;
$custom-light: #705388;
$custom-dark: #000000;
JSON
{
  "hex": "#351158",
  "rgb": {
    "r": 53,
    "g": 17,
    "b": 88
  },
  "hsl": {
    "h": 270.423,
    "s": 67.619,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27978,
    "c": 0.11931,
    "h": 302.2
  },
  "luminance": 0.01862
}

Semantic roles & 50–950 ramp

primary
#351158
secondary
#629134
accent
#EA3D93
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #351158

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

Preview Lab → · Contrast checker → · Palette generator →

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