#351F8A#351F8A

#351F8A is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.165 H 283.1°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#351F8A
RGBrgb(53, 31, 138)
HSLhsl(252, 63%, 33%)
HSVhsv(252, 78%, 54%)
CMYKcmyk(61.6%, 77.5%, 0%, 45.9%)
CIE-LABlab(22.20, 40.27, -55.59)
CIE-LCHlch(22.20, 68.65, 305.92°)
OKLaboklab(34.72% 0.0374 -0.1602)
OKLCHoklch(34.72% 0.165 283.1)
XYZxyz(6.5442, 3.5714, 24.3843)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351F8A #748A1F
analogous
#1F3F8A #351F8A #6A1F8A
triadic
#351F8A #8A351F #1F8A35
tetradic
#351F8A #8A1F3F #748A1F #1F8A6A
square
#351F8A #8A1F3F #748A1F #1F8A6A
split-complementary
#351F8A #8A6A1F #3F8A1F
monochromatic
#0F0926 #221458 #351F8A #482ABC #694CD7

Accessibility & contrast

On white

12.25
#351F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #351F8A
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351F8A#FFFFFF#000000##FFFFFF
##351F8A1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#003188
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #351f8a;
/* rgb */ color: rgb(53, 31, 138);
/* oklch */ color: oklch(34.7% 0.165 283.1);
Tailwind
colors: {
  custom: {
    50: '#785ead',
    500: '#351f8a',
    950: '#000000',
  },
}
SCSS
$custom: #351f8a;
$custom-light: #785ead;
$custom-dark: #000000;
JSON
{
  "hex": "#351f8a",
  "rgb": {
    "r": 53,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 252.336,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34719,
    "c": 0.16455,
    "h": 283.1
  },
  "luminance": 0.03572
}

Semantic roles & 50–950 ramp

primary
#351F8A
secondary
#A3BA4B
accent
#E641C4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #351F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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