#351A8A#351A8A

#351A8A is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.169 H 283.9°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#351A8A
RGBrgb(53, 26, 138)
HSLhsl(254, 68%, 32%)
HSVhsv(254, 81%, 54%)
CMYKcmyk(61.6%, 81.2%, 0%, 45.9%)
CIE-LABlab(21.32, 42.80, -57.04)
CIE-LCHlch(21.32, 71.31, 306.88°)
OKLaboklab(34.1% 0.0407 -0.1644)
OKLCHoklch(34.1% 0.169 283.9)
XYZxyz(6.4236, 3.3302, 24.3441)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351A8A #6F8A1A
analogous
#1A378A #351A8A #6D1A8A
triadic
#351A8A #8A351A #1A8A35
tetradic
#351A8A #8A1A37 #6F8A1A #1A8A6D
square
#351A8A #8A1A37 #6F8A1A #1A8A6D
split-complementary
#351A8A #8A6D1A #378A1A
monochromatic
#0D0723 #211057 #351A8A #4924BD #6843DC

Accessibility & contrast

On white

12.60
#351A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#351A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351A8A
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351A8A#FFFFFF#000000##FFFFFF
##351A8A1.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368D
Deuteranopia (green-blind)
#002F88
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #351a8a;
/* rgb */ color: rgb(53, 26, 138);
/* oklch */ color: oklch(34.1% 0.169 283.9);
Tailwind
colors: {
  custom: {
    50: '#785bad',
    500: '#351a8a',
    950: '#000000',
  },
}
SCSS
$custom: #351a8a;
$custom-light: #785bad;
$custom-dark: #000000;
JSON
{
  "hex": "#351a8a",
  "rgb": {
    "r": 53,
    "g": 26,
    "b": 138
  },
  "hsl": {
    "h": 254.464,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34104,
    "c": 0.1694,
    "h": 283.9
  },
  "luminance": 0.03331
}

Semantic roles & 50–950 ramp

primary
#351A8A
secondary
#9FBD43
accent
#EB3DC1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #351A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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