#35125F#35125F

#35125F is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.126 H 298.7°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#35125F
RGBrgb(53, 18, 95)
HSLhsl(267, 68%, 22%)
HSVhsv(267, 81%, 37%)
CMYKcmyk(44.2%, 81.1%, 0%, 62.7%)
CIE-LABlab(15.57, 34.13, -38.76)
CIE-LCHlch(15.57, 51.65, 311.37°)
OKLaboklab(28.76% 0.0606 -0.1109)
OKLCHoklch(28.76% 0.126 298.7)
XYZxyz(3.7495, 2.0157, 11.0158)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#35125F #3C5F12
analogous
#12155F #35125F #5C125F
triadic
#35125F #5F3512 #125F35
tetradic
#35125F #5F1215 #3C5F12 #125F5C
square
#35125F #5F1215 #3C5F12 #125F5C
split-complementary
#35125F #5F5C12 #155F12
monochromatic
#0E051A #18082C #35125F #521C92 #6E25C6

Accessibility & contrast

On white

14.97
#35125F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#35125F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #35125F
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##35125F#FFFFFF#000000##FFFFFF
##35125F1.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002761
Deuteranopia (green-blind)
#00265E
Tritanopia (blue-blind)
#2B2638
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #35125f;
/* rgb */ color: rgb(53, 18, 95);
/* oklch */ color: oklch(28.8% 0.126 298.7);
Tailwind
colors: {
  custom: {
    50: '#71548d',
    500: '#35125f',
    950: '#000000',
  },
}
SCSS
$custom: #35125f;
$custom-light: #71548d;
$custom-dark: #000000;
JSON
{
  "hex": "#35125f",
  "rgb": {
    "r": 53,
    "g": 18,
    "b": 95
  },
  "hsl": {
    "h": 267.273,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.28758,
    "c": 0.12635,
    "h": 298.7
  },
  "luminance": 0.02016
}

Semantic roles & 50–950 ramp

primary
#35125F
secondary
#6B9736
accent
#EB3D9C
background
#F7F5F8
surface
#EDE8F0
border
#C8C4CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #35125F

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

Preview Lab → · Contrast checker → · Palette generator →

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