#351258#351258

#351258 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.1% C 0.118 H 301.9°. Best body text is #FFFFFF at 15.23:1 contrast (WCAG AA passes).

Color values

HEX#351258
RGBrgb(53, 18, 88)
HSLhsl(270, 66%, 21%)
HSVhsv(270, 80%, 35%)
CMYKcmyk(39.8%, 79.5%, 0%, 65.5%)
CIE-LABlab(14.92, 32.20, -35.13)
CIE-LCHlch(14.92, 47.65, 312.51°)
OKLaboklab(28.1% 0.0625 -0.1002)
OKLCHoklch(28.1% 0.118 301.9)
XYZxyz(3.4455, 1.8941, 9.4147)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351258 #355812
analogous
#121258 #351258 #581258
triadic
#351258 #583512 #125835
tetradic
#351258 #581212 #355812 #125858
square
#351258 #581212 #355812 #125858
split-complementary
#351258 #585812 #125812
monochromatic
#0F0519 #160825 #351258 #541C8B #7227BE

Accessibility & contrast

On white

15.23
#351258 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #351258
15.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351258#FFFFFF#000000##FFFFFF
##3512581.0015.231.3815.23
#FFFFFF15.231.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #351258;
/* rgb */ color: rgb(53, 18, 88);
/* oklch */ color: oklch(28.1% 0.118 301.9);
Tailwind
colors: {
  custom: {
    50: '#705488',
    500: '#351258',
    950: '#000000',
  },
}
SCSS
$custom: #351258;
$custom-light: #705488;
$custom-dark: #000000;
JSON
{
  "hex": "#351258",
  "rgb": {
    "r": 53,
    "g": 18,
    "b": 88
  },
  "hsl": {
    "h": 270,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.281,
    "c": 0.11805,
    "h": 301.9
  },
  "luminance": 0.01894
}

Semantic roles & 50–950 ramp

primary
#351258
secondary
#639135
accent
#E93F94
background
#F7F4F8
surface
#EDE8F0
border
#C8C4CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #351258

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

Preview Lab → · Contrast checker → · Palette generator →

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