#351F89#351F89

#351F89 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.163 H 283.3°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#351F89
RGBrgb(53, 31, 137)
HSLhsl(252, 63%, 33%)
HSVhsv(252, 77%, 54%)
CMYKcmyk(61.3%, 77.4%, 0%, 46.3%)
CIE-LABlab(22.10, 39.96, -55.14)
CIE-LCHlch(22.10, 68.09, 305.93°)
OKLaboklab(34.62% 0.0376 -0.1589)
OKLCHoklch(34.62% 0.163 283.3)
XYZxyz(6.4721, 3.5426, 24.0048)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351F89 #73891F
analogous
#1F3E89 #351F89 #6A1F89
triadic
#351F89 #89351F #1F8935
tetradic
#351F89 #891F3E #73891F #1F896A
square
#351F89 #891F3E #73891F #1F896A
split-complementary
#351F89 #896A1F #3E891F
monochromatic
#0E0825 #221457 #351F89 #482ABB #694CD6

Accessibility & contrast

On white

12.29
#351F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #351F89
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351F89#FFFFFF#000000##FFFFFF
##351F891.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388C
Deuteranopia (green-blind)
#003187
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #351f89;
/* rgb */ color: rgb(53, 31, 137);
/* oklch */ color: oklch(34.6% 0.163 283.3);
Tailwind
colors: {
  custom: {
    50: '#775eac',
    500: '#351f89',
    950: '#000000',
  },
}
SCSS
$custom: #351f89;
$custom-light: #775eac;
$custom-dark: #000000;
JSON
{
  "hex": "#351f89",
  "rgb": {
    "r": 53,
    "g": 31,
    "b": 137
  },
  "hsl": {
    "h": 252.453,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34616,
    "c": 0.16332,
    "h": 283.3
  },
  "luminance": 0.03543
}

Semantic roles & 50–950 ramp

primary
#351F89
secondary
#A2B94B
accent
#E642C4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #351F89

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

Preview Lab → · Contrast checker → · Palette generator →

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