#35127E#35127E

#35127E is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.0% C 0.162 H 287.9°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#35127E
RGBrgb(53, 18, 126)
HSLhsl(259, 75%, 28%)
HSVhsv(259, 86%, 49%)
CMYKcmyk(57.9%, 85.7%, 0%, 50.6%)
CIE-LABlab(18.78, 42.88, -53.66)
CIE-LCHlch(18.78, 68.69, 308.63°)
OKLaboklab(31.96% 0.0499 -0.1545)
OKLCHoklch(31.96% 0.162 287.9)
XYZxyz(5.4493, 2.6956, 19.9678)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#35127E #5B7E12
analogous
#12257E #35127E #6B127E
triadic
#35127E #7E3512 #127E35
tetradic
#35127E #7E1225 #5B7E12 #127E6B
square
#35127E #7E1225 #5B7E12 #127E6B
split-complementary
#35127E #7E6B12 #257E12
monochromatic
#0B041B #1E0A48 #35127E #4C1AB4 #652AE1

Accessibility & contrast

On white

13.64
#35127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#35127E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #35127E
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##35127E#FFFFFF#000000##FFFFFF
##35127E1.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#14334A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #35127e;
/* rgb */ color: rgb(53, 18, 126);
/* oklch */ color: oklch(32.0% 0.162 287.9);
Tailwind
colors: {
  custom: {
    50: '#7656a4',
    500: '#35127e',
    950: '#000000',
  },
}
SCSS
$custom: #35127e;
$custom-light: #7656a4;
$custom-dark: #000000;
JSON
{
  "hex": "#35127e",
  "rgb": {
    "r": 53,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 259.444,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31958,
    "c": 0.16232,
    "h": 287.9
  },
  "luminance": 0.02696
}

Semantic roles & 50–950 ramp

primary
#35127E
secondary
#8CB438
accent
#F236B5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #35127E

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

Preview Lab → · Contrast checker → · Palette generator →

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