#351F8D#351F8D

#351F8D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.168 H 282.5°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#351F8D
RGBrgb(53, 31, 141)
HSLhsl(252, 64%, 34%)
HSVhsv(252, 78%, 55%)
CMYKcmyk(62.4%, 78%, 0%, 44.7%)
CIE-LABlab(22.51, 41.20, -56.95)
CIE-LCHlch(22.51, 70.29, 305.89°)
OKLaboklab(35.03% 0.0366 -0.1642)
OKLCHoklch(35.03% 0.168 282.5)
XYZxyz(6.7644, 3.6595, 25.5440)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351F8D #778D1F
analogous
#1F408D #351F8D #6C1F8D
triadic
#351F8D #8D351F #1F8D35
tetradic
#351F8D #8D1F40 #778D1F #1F8D6C
square
#351F8D #8D1F40 #778D1F #1F8D6C
split-complementary
#351F8D #8D6C1F #408D1F
monochromatic
#0F0929 #22145B #351F8D #482ABF #6A4ED8

Accessibility & contrast

On white

12.12
#351F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#351F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351F8D
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351F8D#FFFFFF#000000##FFFFFF
##351F8D1.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00328B
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #351f8d;
/* rgb */ color: rgb(53, 31, 141);
/* oklch */ color: oklch(35.0% 0.168 282.5);
Tailwind
colors: {
  custom: {
    50: '#785eaf',
    500: '#351f8d',
    950: '#000000',
  },
}
SCSS
$custom: #351f8d;
$custom-light: #785eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#351f8d",
  "rgb": {
    "r": 53,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 252,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35031,
    "c": 0.16824,
    "h": 282.5
  },
  "luminance": 0.0366
}

Semantic roles & 50–950 ramp

primary
#351F8D
secondary
#A5BB4D
accent
#E741C6
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #351F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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