#35168E#35168E

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

Color values

HEX#35168E
RGBrgb(53, 22, 142)
HSLhsl(256, 73%, 32%)
HSVhsv(256, 85%, 56%)
CMYKcmyk(62.7%, 84.5%, 0%, 44.3%)
CIE-LABlab(21.14, 45.78, -59.83)
CIE-LCHlch(21.14, 75.34, 307.42°)
OKLaboklab(34.11% 0.0416 -0.1725)
OKLCHoklch(34.11% 0.177 283.6)
XYZxyz(6.6361, 3.2832, 25.8700)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#35168E #6F8E16
analogous
#16338E #35168E #71168E
triadic
#35168E #8E3516 #168E35
tetradic
#35168E #8E1633 #6F8E16 #168E71
square
#35168E #8E1633 #6F8E16 #168E71
split-complementary
#35168E #8E7116 #338E16
monochromatic
#0D0624 #210E59 #35168E #491EC3 #683DE1

Accessibility & contrast

On white

12.68
#35168E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #35168E
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##35168E#FFFFFF#000000##FFFFFF
##35168E1.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #35168e;
/* rgb */ color: rgb(53, 22, 142);
/* oklch */ color: oklch(34.1% 0.177 283.6);
Tailwind
colors: {
  custom: {
    50: '#7959b0',
    500: '#35168e',
    950: '#000000',
  },
}
SCSS
$custom: #35168e;
$custom-light: #7959b0;
$custom-dark: #000000;
JSON
{
  "hex": "#35168e",
  "rgb": {
    "r": 53,
    "g": 22,
    "b": 142
  },
  "hsl": {
    "h": 255.5,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34114,
    "c": 0.17746,
    "h": 283.6
  },
  "luminance": 0.03284
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #35168E

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

Preview Lab → · Contrast checker → · Palette generator →

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