#403279#403279

#403279 is a dark, moderate violet. Relative luminance 0.048; OKLCH L 37.3% C 0.116 H 288.5°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#403279
RGBrgb(64, 50, 121)
HSLhsl(252, 42%, 34%)
HSVhsv(252, 59%, 47%)
CMYKcmyk(47.1%, 58.7%, 0%, 52.5%)
CIE-LABlab(26.01, 25.50, -38.63)
CIE-LCHlch(26.01, 46.29, 303.43°)
OKLaboklab(37.28% 0.0369 -0.1101)
OKLCHoklch(37.28% 0.116 288.5)
XYZxyz(6.7052, 4.7514, 18.6493)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403279 #6B7932
analogous
#324779 #403279 #633279
triadic
#403279 #794032 #327940
tetradic
#403279 #793247 #6B7932 #327963
square
#403279 #793247 #6B7932 #327963
split-complementary
#403279 #796332 #477932
monochromatic
#120E22 #29204E #403279 #5744A4 #7766C0

Accessibility & contrast

On white

10.77
#403279 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#403279 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403279
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403279#FFFFFF#000000##FFFFFF
##4032791.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#073F7B
Deuteranopia (green-blind)
#093C77
Tritanopia (blue-blind)
#2E4250
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #403279;
/* rgb */ color: rgb(64, 50, 121);
/* oklch */ color: oklch(37.3% 0.116 288.5);
Tailwind
colors: {
  custom: {
    50: '#796aa0',
    500: '#403279',
    950: '#000000',
  },
}
SCSS
$custom: #403279;
$custom-light: #796aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#403279",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 121
  },
  "hsl": {
    "h": 251.831,
    "s": 41.52,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37275,
    "c": 0.11615,
    "h": 288.5
  },
  "luminance": 0.04752
}

Semantic roles & 50–950 ramp

primary
#403279
secondary
#99A75F
accent
#D156B9
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#09060F
muted
#7B7A7E

Preview Lab

Preview with #403279

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

Preview Lab → · Contrast checker → · Palette generator →

#403279 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva