#351B74#351B74

#351B74 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.142 H 289.2°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#351B74
RGBrgb(53, 27, 116)
HSLhsl(258, 62%, 28%)
HSVhsv(258, 77%, 45%)
CMYKcmyk(54.3%, 76.7%, 0%, 54.5%)
CIE-LABlab(19.23, 35.64, -46.52)
CIE-LCHlch(19.23, 58.60, 307.45°)
OKLaboklab(31.96% 0.0464 -0.1337)
OKLCHoklch(31.96% 0.142 289.2)
XYZxyz(5.0116, 2.8015, 16.7963)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351B74 #5A741B
analogous
#1B2D74 #351B74 #611B74
triadic
#351B74 #74351B #1B7435
tetradic
#351B74 #741B2D #5A741B #1B7461
square
#351B74 #741B2D #5A741B #1B7461
split-complementary
#351B74 #74611B #2D741B
monochromatic
#0B0619 #1E0F42 #351B74 #4C27A6 #6539D1

Accessibility & contrast

On white

13.46
#351B74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#351B74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351B74
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351B74#FFFFFF#000000##FFFFFF
##351B741.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003077
Deuteranopia (green-blind)
#002C72
Tritanopia (blue-blind)
#1E3346
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #351b74;
/* rgb */ color: rgb(53, 27, 116);
/* oklch */ color: oklch(32.0% 0.142 289.2);
Tailwind
colors: {
  custom: {
    50: '#745a9d',
    500: '#351b74',
    950: '#000000',
  },
}
SCSS
$custom: #351b74;
$custom-light: #745a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#351b74",
  "rgb": {
    "r": 53,
    "g": 27,
    "b": 116
  },
  "hsl": {
    "h": 257.528,
    "s": 62.238,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31957,
    "c": 0.14152,
    "h": 289.2
  },
  "luminance": 0.02802
}

Semantic roles & 50–950 ramp

primary
#351B74
secondary
#8BA942
accent
#E542B6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #351B74

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

Preview Lab → · Contrast checker → · Palette generator →

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