#351B88#351B88

#351B88 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.166 H 284.2°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#351B88
RGBrgb(53, 27, 136)
HSLhsl(254, 67%, 32%)
HSVhsv(254, 80%, 53%)
CMYKcmyk(61%, 80.1%, 0%, 46.7%)
CIE-LABlab(21.27, 41.71, -55.87)
CIE-LCHlch(21.27, 69.72, 306.75°)
OKLaboklab(34.01% 0.0407 -0.161)
OKLCHoklch(34.01% 0.166 284.2)
XYZxyz(6.3027, 3.3179, 23.5961)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351B88 #6E881B
analogous
#1B3888 #351B88 #6C1B88
triadic
#351B88 #88351B #1B8835
tetradic
#351B88 #881B38 #6E881B #1B886C
square
#351B88 #881B38 #6E881B #1B886C
split-complementary
#351B88 #886C1B #38881B
monochromatic
#0D0722 #211155 #351B88 #4925BB #6744DA

Accessibility & contrast

On white

12.62
#351B88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#351B88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351B88
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351B88#FFFFFF#000000##FFFFFF
##351B881.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368B
Deuteranopia (green-blind)
#003086
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #351b88;
/* rgb */ color: rgb(53, 27, 136);
/* oklch */ color: oklch(34.0% 0.166 284.2);
Tailwind
colors: {
  custom: {
    50: '#775bac',
    500: '#351b88',
    950: '#000000',
  },
}
SCSS
$custom: #351b88;
$custom-light: #775bac;
$custom-dark: #000000;
JSON
{
  "hex": "#351b88",
  "rgb": {
    "r": 53,
    "g": 27,
    "b": 136
  },
  "hsl": {
    "h": 254.312,
    "s": 66.871,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34008,
    "c": 0.16607,
    "h": 284.2
  },
  "luminance": 0.03318
}

Semantic roles & 50–950 ramp

primary
#351B88
secondary
#9FBB44
accent
#EA3EC1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #351B88

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

Preview Lab → · Contrast checker → · Palette generator →

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