#35175F#35175F

#35175F is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.4% C 0.120 H 297.5°. Best body text is #FFFFFF at 14.59:1 contrast (WCAG AA passes).

Color values

HEX#35175F
RGBrgb(53, 23, 95)
HSLhsl(265, 61%, 23%)
HSVhsv(265, 76%, 37%)
CMYKcmyk(44.2%, 75.8%, 0%, 62.7%)
CIE-LABlab(16.48, 31.55, -37.27)
CIE-LCHlch(16.48, 48.83, 310.25°)
OKLaboklab(29.4% 0.0554 -0.1065)
OKLCHoklch(29.4% 0.12 297.5)
XYZxyz(3.8396, 2.1958, 11.0458)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#35175F #415F17
analogous
#171D5F #35175F #59175F
triadic
#35175F #5F3517 #175F35
tetradic
#35175F #5F171D #415F17 #175F59
square
#35175F #5F171D #415F17 #175F59
split-complementary
#35175F #5F5917 #1D5F17
monochromatic
#0E0619 #1A0B2E #35175F #502390 #6C2FC2

Accessibility & contrast

On white

14.59
#35175F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#35175F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #35175F
14.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##35175F#FFFFFF#000000##FFFFFF
##35175F1.0014.591.4414.59
#FFFFFF14.591.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002961
Deuteranopia (green-blind)
#00285E
Tritanopia (blue-blind)
#2A2939
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #35175f;
/* rgb */ color: rgb(53, 23, 95);
/* oklch */ color: oklch(29.4% 0.120 297.5);
Tailwind
colors: {
  custom: {
    50: '#71578d',
    500: '#35175f',
    950: '#000000',
  },
}
SCSS
$custom: #35175f;
$custom-light: #71578d;
$custom-dark: #000000;
JSON
{
  "hex": "#35175f",
  "rgb": {
    "r": 53,
    "g": 23,
    "b": 95
  },
  "hsl": {
    "h": 265,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.29403,
    "c": 0.12007,
    "h": 297.5
  },
  "luminance": 0.02196
}

Semantic roles & 50–950 ramp

primary
#35175F
secondary
#70963C
accent
#E444A1
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #35175F

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

Preview Lab → · Contrast checker → · Palette generator →

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