#35178B#35178B

#35178B is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.9% C 0.173 H 284.1°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#35178B
RGBrgb(53, 23, 139)
HSLhsl(256, 72%, 32%)
HSVhsv(256, 83%, 55%)
CMYKcmyk(61.9%, 83.5%, 0%, 45.5%)
CIE-LABlab(20.95, 44.48, -58.27)
CIE-LCHlch(20.95, 73.31, 307.36°)
OKLaboklab(33.88% 0.0422 -0.168)
OKLCHoklch(33.88% 0.173 284.1)
XYZxyz(6.4334, 3.2333, 24.7062)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#35178B #6D8B17
analogous
#17338B #35178B #6F178B
triadic
#35178B #8B3517 #178B35
tetradic
#35178B #8B1733 #6D8B17 #178B6F
square
#35178B #8B1733 #6D8B17 #178B6F
split-complementary
#35178B #8B6F17 #338B17
monochromatic
#0D0622 #210E56 #35178B #4920C0 #673DDF

Accessibility & contrast

On white

12.75
#35178B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#35178B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #35178B
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##35178B#FFFFFF#000000##FFFFFF
##35178B1.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368E
Deuteranopia (green-blind)
#002F89
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #35178b;
/* rgb */ color: rgb(53, 23, 139);
/* oklch */ color: oklch(33.9% 0.173 284.1);
Tailwind
colors: {
  custom: {
    50: '#7859ae',
    500: '#35178b',
    950: '#000000',
  },
}
SCSS
$custom: #35178b;
$custom-light: #7859ae;
$custom-dark: #000000;
JSON
{
  "hex": "#35178b",
  "rgb": {
    "r": 53,
    "g": 23,
    "b": 139
  },
  "hsl": {
    "h": 255.517,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33884,
    "c": 0.17319,
    "h": 284.1
  },
  "luminance": 0.03234
}

Semantic roles & 50–950 ramp

primary
#35178B
secondary
#9EBF3F
accent
#EE39C0
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #35178B

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

Preview Lab → · Contrast checker → · Palette generator →

#35178B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva