#35175C#35175C

#35175C is a dark, moderate violet. Relative luminance 0.021; OKLCH L 29.1% C 0.116 H 298.8°. Best body text is #FFFFFF at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#35175C
RGBrgb(53, 23, 92)
HSLhsl(266, 60%, 23%)
HSVhsv(266, 75%, 36%)
CMYKcmyk(42.4%, 75%, 0%, 63.9%)
CIE-LABlab(16.22, 30.68, -35.70)
CIE-LCHlch(16.22, 47.08, 310.67°)
OKLaboklab(29.13% 0.0561 -0.1019)
OKLCHoklch(29.13% 0.116 298.8)
XYZxyz(3.7059, 2.1423, 10.3414)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#35175C #3E5C17
analogous
#171B5C #35175C #57175C
triadic
#35175C #5C3517 #175C35
tetradic
#35175C #5C171B #3E5C17 #175C57
square
#35175C #5C171B #3E5C17 #175C57
split-complementary
#35175C #5C5717 #1B5C17
monochromatic
#0E0618 #190B2B #35175C #51238D #6D2FBE

Accessibility & contrast

On white

14.70
#35175C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#35175C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #35175C
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##35175C#FFFFFF#000000##FFFFFF
##35175C1.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285E
Deuteranopia (green-blind)
#00285B
Tritanopia (blue-blind)
#2C2837
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #35175c;
/* rgb */ color: rgb(53, 23, 92);
/* oklch */ color: oklch(29.1% 0.116 298.8);
Tailwind
colors: {
  custom: {
    50: '#70578b',
    500: '#35175c',
    950: '#000000',
  },
}
SCSS
$custom: #35175c;
$custom-light: #70578b;
$custom-dark: #000000;
JSON
{
  "hex": "#35175c",
  "rgb": {
    "r": 53,
    "g": 23,
    "b": 92
  },
  "hsl": {
    "h": 266.087,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.29131,
    "c": 0.1163,
    "h": 298.8
  },
  "luminance": 0.02142
}

Semantic roles & 50–950 ramp

primary
#35175C
secondary
#6D933C
accent
#E3459E
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #35175C

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

Preview Lab → · Contrast checker → · Palette generator →

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