#351E8B#351E8B

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

Color values

HEX#351E8B
RGBrgb(53, 30, 139)
HSLhsl(253, 64%, 33%)
HSVhsv(253, 78%, 55%)
CMYKcmyk(61.9%, 78.4%, 0%, 45.5%)
CIE-LABlab(22.12, 41.11, -56.35)
CIE-LCHlch(22.12, 69.75, 306.11°)
OKLaboklab(34.69% 0.0378 -0.1624)
OKLCHoklch(34.69% 0.167 283.1)
XYZxyz(6.5912, 3.5491, 24.7588)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351E8B #748B1E
analogous
#1E3D8B #351E8B #6B1E8B
triadic
#351E8B #8B351E #1E8B35
tetradic
#351E8B #8B1E3D #748B1E #1E8B6B
square
#351E8B #8B1E3D #748B1E #1E8B6B
split-complementary
#351E8B #8B6B1E #3D8B1E
monochromatic
#0F0826 #221359 #351E8B #4829BD #694BD8

Accessibility & contrast

On white

12.28
#351E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #351E8B
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351E8B#FFFFFF#000000##FFFFFF
##351E8B1.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#003189
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #351e8b;
/* rgb */ color: rgb(53, 30, 139);
/* oklch */ color: oklch(34.7% 0.167 283.1);
Tailwind
colors: {
  custom: {
    50: '#785dae',
    500: '#351e8b',
    950: '#000000',
  },
}
SCSS
$custom: #351e8b;
$custom-light: #785dae;
$custom-dark: #000000;
JSON
{
  "hex": "#351e8b",
  "rgb": {
    "r": 53,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 252.661,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34694,
    "c": 0.16679,
    "h": 283.1
  },
  "luminance": 0.0355
}

Semantic roles & 50–950 ramp

primary
#351E8B
secondary
#A3BB4A
accent
#E740C4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #351E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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