#351B8F#351B8F

#351B8F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.174 H 282.8°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#351B8F
RGBrgb(53, 27, 143)
HSLhsl(253, 68%, 33%)
HSVhsv(253, 81%, 56%)
CMYKcmyk(62.9%, 81.1%, 0%, 43.9%)
CIE-LABlab(22.03, 43.82, -58.99)
CIE-LCHlch(22.03, 73.49, 306.60°)
OKLaboklab(34.76% 0.0385 -0.1701)
OKLCHoklch(34.76% 0.174 282.8)
XYZxyz(6.8165, 3.5234, 26.3022)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351B8F #758F1B
analogous
#1B3B8F #351B8F #6F1B8F
triadic
#351B8F #8F351B #1B8F35
tetradic
#351B8F #8F1B3B #758F1B #1B8F6F
square
#351B8F #8F1B3B #758F1B #1B8F6F
split-complementary
#351B8F #8F6F1B #3B8F1B
monochromatic
#0F0828 #22115C #351B8F #4825C2 #6948DC

Accessibility & contrast

On white

12.32
#351B8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #351B8F
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351B8F#FFFFFF#000000##FFFFFF
##351B8F1.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #351b8f;
/* rgb */ color: rgb(53, 27, 143);
/* oklch */ color: oklch(34.8% 0.174 282.8);
Tailwind
colors: {
  custom: {
    50: '#795cb1',
    500: '#351b8f',
    950: '#000000',
  },
}
SCSS
$custom: #351b8f;
$custom-light: #795cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#351b8f",
  "rgb": {
    "r": 53,
    "g": 27,
    "b": 143
  },
  "hsl": {
    "h": 253.448,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34758,
    "c": 0.17443,
    "h": 282.8
  },
  "luminance": 0.03524
}

Semantic roles & 50–950 ramp

primary
#351B8F
secondary
#A4BE48
accent
#EB3DC4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #351B8F

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

Preview Lab → · Contrast checker → · Palette generator →

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