#351C8E#351C8E

#351C8E is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.172 H 282.8°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#351C8E
RGBrgb(53, 28, 142)
HSLhsl(253, 67%, 33%)
HSVhsv(253, 80%, 56%)
CMYKcmyk(62.7%, 80.3%, 0%, 44.3%)
CIE-LABlab(22.09, 43.03, -58.27)
CIE-LCHlch(22.09, 72.44, 306.45°)
OKLaboklab(34.77% 0.0382 -0.168)
OKLCHoklch(34.77% 0.172 282.8)
XYZxyz(6.7644, 3.5399, 25.9128)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351C8E #758E1C
analogous
#1C3C8E #351C8E #6E1C8E
triadic
#351C8E #8E351C #1C8E35
tetradic
#351C8E #8E1C3C #758E1C #1C8E6E
square
#351C8E #8E1C3C #758E1C #1C8E6E
split-complementary
#351C8E #8E6E1C #3C8E1C
monochromatic
#0F0828 #22125B #351C8E #4826C1 #6949DB

Accessibility & contrast

On white

12.30
#351C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#351C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351C8E
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351C8E#FFFFFF#000000##FFFFFF
##351C8E1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#00318C
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #351c8e;
/* rgb */ color: rgb(53, 28, 142);
/* oklch */ color: oklch(34.8% 0.172 282.8);
Tailwind
colors: {
  custom: {
    50: '#795cb0',
    500: '#351c8e',
    950: '#000000',
  },
}
SCSS
$custom: #351c8e;
$custom-light: #795cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#351c8e",
  "rgb": {
    "r": 53,
    "g": 28,
    "b": 142
  },
  "hsl": {
    "h": 253.158,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34767,
    "c": 0.17234,
    "h": 282.8
  },
  "luminance": 0.0354
}

Semantic roles & 50–950 ramp

primary
#351C8E
secondary
#A4BD49
accent
#EA3EC4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #351C8E

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

Preview Lab → · Contrast checker → · Palette generator →

#351C8E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva