#35178F#35178F

#35178F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.178 H 283.3°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#35178F
RGBrgb(53, 23, 143)
HSLhsl(255, 72%, 33%)
HSVhsv(255, 84%, 56%)
CMYKcmyk(62.9%, 83.9%, 0%, 43.9%)
CIE-LABlab(21.40, 45.64, -60.03)
CIE-LCHlch(21.40, 75.41, 307.25°)
OKLaboklab(34.33% 0.0408 -0.1731)
OKLCHoklch(34.33% 0.178 283.3)
XYZxyz(6.7310, 3.3524, 26.2737)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#35178F #718F17
analogous
#17358F #35178F #71178F
triadic
#35178F #8F3517 #178F35
tetradic
#35178F #8F1735 #718F17 #178F71
square
#35178F #8F1735 #718F17 #178F71
split-complementary
#35178F #8F7117 #358F17
monochromatic
#0E0626 #210F5A #35178F #491FC4 #6840E0

Accessibility & contrast

On white

12.57
#35178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#35178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #35178F
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##35178F#FFFFFF#000000##FFFFFF
##35178F1.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #35178f;
/* rgb */ color: rgb(53, 23, 143);
/* oklch */ color: oklch(34.3% 0.178 283.3);
Tailwind
colors: {
  custom: {
    50: '#795ab1',
    500: '#35178f',
    950: '#000000',
  },
}
SCSS
$custom: #35178f;
$custom-light: #795ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#35178f",
  "rgb": {
    "r": 53,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 255,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34325,
    "c": 0.17782,
    "h": 283.3
  },
  "luminance": 0.03353
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #35178F

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

Preview Lab → · Contrast checker → · Palette generator →

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