#403765#403765

#403765 is a dark, moderate violet. Relative luminance 0.048; OKLCH L 36.9% C 0.078 H 291.1°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#403765
RGBrgb(64, 55, 101)
HSLhsl(252, 29%, 31%)
HSVhsv(252, 46%, 40%)
CMYKcmyk(36.6%, 45.5%, 0%, 60.4%)
CIE-LABlab(26.05, 15.95, -25.79)
CIE-LCHlch(26.05, 30.32, 301.73°)
OKLaboklab(36.88% 0.028 -0.0725)
OKLCHoklch(36.88% 0.078 291.1)
XYZxyz(5.8289, 4.7618, 12.9214)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403765 #5C6537
analogous
#374565 #403765 #573765
triadic
#403765 #654037 #376540
tetradic
#403765 #653745 #5C6537 #376557
square
#403765 #653745 #5C6537 #376557
split-complementary
#403765 #655737 #456537
monochromatic
#0E0C16 #27213D #403765 #594D8D #7669AD

Accessibility & contrast

On white

10.76
#403765 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403765
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403765#FFFFFF#000000##FFFFFF
##4037651.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#283E67
Deuteranopia (green-blind)
#293D64
Tritanopia (blue-blind)
#374049
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #403765;
/* rgb */ color: rgb(64, 55, 101);
/* oklch */ color: oklch(36.9% 0.078 291.1);
Tailwind
colors: {
  custom: {
    50: '#766e91',
    500: '#403765',
    950: '#000000',
  },
}
SCSS
$custom: #403765;
$custom-light: #766e91;
$custom-dark: #000000;
JSON
{
  "hex": "#403765",
  "rgb": {
    "r": 64,
    "g": 55,
    "b": 101
  },
  "hsl": {
    "h": 251.739,
    "s": 29.487,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36879,
    "c": 0.07768,
    "h": 291.1
  },
  "luminance": 0.04762
}

Semantic roles & 50–950 ramp

primary
#403765
secondary
#8B9562
accent
#C662B2
background
#F7F6F8
surface
#EDEBF0
border
#C8C6CB
text
#09070D
muted
#7B7A7D

Preview Lab

Preview with #403765

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

Preview Lab → · Contrast checker → · Palette generator →

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