#403379#403379

#403379 is a dark, moderate violet. Relative luminance 0.048; OKLCH L 37.5% C 0.115 H 288.1°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#403379
RGBrgb(64, 51, 121)
HSLhsl(251, 41%, 34%)
HSVhsv(251, 58%, 47%)
CMYKcmyk(47.1%, 57.9%, 0%, 52.5%)
CIE-LABlab(26.27, 24.85, -38.22)
CIE-LCHlch(26.27, 45.59, 303.03°)
OKLaboklab(37.46% 0.0356 -0.1089)
OKLCHoklch(37.46% 0.115 288.1)
XYZxyz(6.7484, 4.8379, 18.6637)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403379 #6C7933
analogous
#334979 #403379 #633379
triadic
#403379 #794033 #337940
tetradic
#403379 #793349 #6C7933 #337963
square
#403379 #793349 #6C7933 #337963
split-complementary
#403379 #796333 #497933
monochromatic
#120F23 #29214E #403379 #5745A4 #7867BF

Accessibility & contrast

On white

10.67
#403379 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#403379 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403379
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403379#FFFFFF#000000##FFFFFF
##4033791.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B407B
Deuteranopia (green-blind)
#0C3C77
Tritanopia (blue-blind)
#2E4250
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #403379;
/* rgb */ color: rgb(64, 51, 121);
/* oklch */ color: oklch(37.5% 0.115 288.1);
Tailwind
colors: {
  custom: {
    50: '#796ba0',
    500: '#403379',
    950: '#000000',
  },
}
SCSS
$custom: #403379;
$custom-light: #796ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#403379",
  "rgb": {
    "r": 64,
    "g": 51,
    "b": 121
  },
  "hsl": {
    "h": 251.143,
    "s": 40.698,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37463,
    "c": 0.1146,
    "h": 288.1
  },
  "luminance": 0.04838
}

Semantic roles & 50–950 ramp

primary
#403379
secondary
#9AA761
accent
#D157BA
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#09060F
muted
#7B7A7E

Preview Lab

Preview with #403379

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

Preview Lab → · Contrast checker → · Palette generator →

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