#351B98#351B98

#351B98 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.185 H 281.1°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#351B98
RGBrgb(53, 27, 152)
HSLhsl(252, 70%, 35%)
HSVhsv(252, 82%, 60%)
CMYKcmyk(65.1%, 82.2%, 0%, 40.4%)
CIE-LABlab(23.02, 46.50, -62.91)
CIE-LCHlch(23.02, 78.23, 306.47°)
OKLaboklab(35.74% 0.0356 -0.1816)
OKLCHoklch(35.74% 0.185 281.1)
XYZxyz(7.5258, 3.8072, 30.0379)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351B98 #7E981B
analogous
#1B4098 #351B98 #731B98
triadic
#351B98 #98351B #1B9835
tetradic
#351B98 #981B40 #7E981B #1B9873
square
#351B98 #981B40 #7E981B #1B9873
split-complementary
#351B98 #98731B #40981B
monochromatic
#110930 #231264 #351B98 #4724CC #6C4EE0

Accessibility & contrast

On white

11.92
#351B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#351B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351B98
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351B98#FFFFFF#000000##FFFFFF
##351B981.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9B
Deuteranopia (green-blind)
#003296
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #351b98;
/* rgb */ color: rgb(53, 27, 152);
/* oklch */ color: oklch(35.7% 0.185 281.1);
Tailwind
colors: {
  custom: {
    50: '#7b5cb8',
    500: '#351b98',
    950: '#000000',
  },
}
SCSS
$custom: #351b98;
$custom-light: #7b5cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#351b98",
  "rgb": {
    "r": 53,
    "g": 27,
    "b": 152
  },
  "hsl": {
    "h": 252.48,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35741,
    "c": 0.18502,
    "h": 281.1
  },
  "luminance": 0.03808
}

Semantic roles & 50–950 ramp

primary
#351B98
secondary
#AAC24D
accent
#ED3BC8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #351B98

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

Preview Lab → · Contrast checker → · Palette generator →

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