#351F88#351F88

#351F88 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.162 H 283.5°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#351F88
RGBrgb(53, 31, 136)
HSLhsl(253, 63%, 33%)
HSVhsv(253, 77%, 53%)
CMYKcmyk(61%, 77.2%, 0%, 46.7%)
CIE-LABlab(21.99, 39.65, -54.68)
CIE-LCHlch(21.99, 67.54, 305.95°)
OKLaboklab(34.51% 0.0379 -0.1576)
OKLCHoklch(34.51% 0.162 283.5)
XYZxyz(6.4007, 3.5140, 23.6288)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351F88 #72881F
analogous
#1F3E88 #351F88 #691F88
triadic
#351F88 #88351F #1F8835
tetradic
#351F88 #881F3E #72881F #1F8869
square
#351F88 #881F3E #72881F #1F8869
split-complementary
#351F88 #88691F #3E881F
monochromatic
#0E0824 #221456 #351F88 #482ABA #684BD6

Accessibility & contrast

On white

12.33
#351F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#351F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351F88
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351F88#FFFFFF#000000##FFFFFF
##351F881.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388B
Deuteranopia (green-blind)
#003186
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #351f88;
/* rgb */ color: rgb(53, 31, 136);
/* oklch */ color: oklch(34.5% 0.162 283.5);
Tailwind
colors: {
  custom: {
    50: '#775eac',
    500: '#351f88',
    950: '#000000',
  },
}
SCSS
$custom: #351f88;
$custom-light: #775eac;
$custom-dark: #000000;
JSON
{
  "hex": "#351f88",
  "rgb": {
    "r": 53,
    "g": 31,
    "b": 136
  },
  "hsl": {
    "h": 252.571,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34512,
    "c": 0.16208,
    "h": 283.5
  },
  "luminance": 0.03514
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #351F88

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

Preview Lab → · Contrast checker → · Palette generator →

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