#35168D#35168D

#35168D is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.176 H 283.8°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#35168D
RGBrgb(53, 22, 141)
HSLhsl(256, 73%, 32%)
HSVhsv(256, 84%, 55%)
CMYKcmyk(62.4%, 84.4%, 0%, 44.7%)
CIE-LABlab(21.03, 45.49, -59.39)
CIE-LCHlch(21.03, 74.82, 307.45°)
OKLaboklab(34% 0.042 -0.1712)
OKLCHoklch(34% 0.176 283.8)
XYZxyz(6.5613, 3.2533, 25.4763)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#35168D #6E8D16
analogous
#16338D #35168D #71168D
triadic
#35168D #8D3516 #168D35
tetradic
#35168D #8D1633 #6E8D16 #168D71
square
#35168D #8D1633 #6E8D16 #168D71
split-complementary
#35168D #8D7116 #338D16
monochromatic
#0D0523 #210E58 #35168D #491EC2 #673DE1

Accessibility & contrast

On white

12.72
#35168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#35168D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #35168D
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##35168D#FFFFFF#000000##FFFFFF
##35168D1.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003690
Deuteranopia (green-blind)
#002F8B
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #35168d;
/* rgb */ color: rgb(53, 22, 141);
/* oklch */ color: oklch(34.0% 0.176 283.8);
Tailwind
colors: {
  custom: {
    50: '#7959b0',
    500: '#35168d',
    950: '#000000',
  },
}
SCSS
$custom: #35168d;
$custom-light: #7959b0;
$custom-dark: #000000;
JSON
{
  "hex": "#35168d",
  "rgb": {
    "r": 53,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 255.63,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34003,
    "c": 0.17632,
    "h": 283.8
  },
  "luminance": 0.03254
}

Semantic roles & 50–950 ramp

primary
#35168D
secondary
#9FC13E
accent
#F038C0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #35168D

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

Preview Lab → · Contrast checker → · Palette generator →

#35168D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva