#35178E#35178E

#35178E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.177 H 283.5°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#35178E
RGBrgb(53, 23, 142)
HSLhsl(255, 72%, 32%)
HSVhsv(255, 84%, 56%)
CMYKcmyk(62.7%, 83.8%, 0%, 44.3%)
CIE-LABlab(21.29, 45.35, -59.59)
CIE-LCHlch(21.29, 74.88, 307.27°)
OKLaboklab(34.21% 0.0411 -0.1718)
OKLCHoklch(34.21% 0.177 283.5)
XYZxyz(6.6556, 3.3222, 25.8765)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#35178E #708E17
analogous
#17358E #35178E #71178E
triadic
#35178E #8E3517 #178E35
tetradic
#35178E #8E1735 #708E17 #178E71
square
#35178E #8E1735 #708E17 #178E71
split-complementary
#35178E #8E7117 #358E17
monochromatic
#0E0625 #210E59 #35178E #4920C3 #683FE0

Accessibility & contrast

On white

12.62
#35178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#35178E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #35178E
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##35178E#FFFFFF#000000##FFFFFF
##35178E1.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003791
Deuteranopia (green-blind)
#002F8C
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #35178e;
/* rgb */ color: rgb(53, 23, 142);
/* oklch */ color: oklch(34.2% 0.177 283.5);
Tailwind
colors: {
  custom: {
    50: '#795ab0',
    500: '#35178e',
    950: '#000000',
  },
}
SCSS
$custom: #35178e;
$custom-light: #795ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#35178e",
  "rgb": {
    "r": 53,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 255.126,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34214,
    "c": 0.17667,
    "h": 283.5
  },
  "luminance": 0.03323
}

Semantic roles & 50–950 ramp

primary
#35178E
secondary
#A0C040
accent
#EF39C1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #35178E

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

Preview Lab → · Contrast checker → · Palette generator →

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