#403165#403165

#403165 is a dark, moderate violet. Relative luminance 0.042; OKLCH L 35.6% C 0.088 H 294.8°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#403165
RGBrgb(64, 49, 101)
HSLhsl(257, 35%, 29%)
HSVhsv(257, 51%, 40%)
CMYKcmyk(36.6%, 51.5%, 0%, 60.4%)
CIE-LABlab(24.41, 19.95, -28.39)
CIE-LCHlch(24.41, 34.70, 305.09°)
OKLaboklab(35.64% 0.037 -0.0801)
OKLCHoklch(35.64% 0.088 294.8)
XYZxyz(5.5610, 4.2261, 12.8321)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403165 #566531
analogous
#313C65 #403165 #5A3165
triadic
#403165 #654031 #316540
tetradic
#403165 #65313C #566531 #31655A
square
#403165 #65313C #566531 #31655A
split-complementary
#403165 #655A31 #3C6531
monochromatic
#0D0A15 #261D3C #403165 #5A458E #775FB1

Accessibility & contrast

On white

11.38
#403165 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#403165 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403165
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403165#FFFFFF#000000##FFFFFF
##4031651.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3A67
Deuteranopia (green-blind)
#213964
Tritanopia (blue-blind)
#373B46
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #403165;
/* rgb */ color: rgb(64, 49, 101);
/* oklch */ color: oklch(35.6% 0.088 294.8);
Tailwind
colors: {
  custom: {
    50: '#776991',
    500: '#403165',
    950: '#000000',
  },
}
SCSS
$custom: #403165;
$custom-light: #776991;
$custom-dark: #000000;
JSON
{
  "hex": "#403165",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 101
  },
  "hsl": {
    "h": 257.308,
    "s": 34.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35644,
    "c": 0.08823,
    "h": 294.8
  },
  "luminance": 0.04226
}

Semantic roles & 50–950 ramp

primary
#403165
secondary
#85965C
accent
#CB5DAB
background
#F7F6F8
surface
#EDEBF0
border
#C8C6CB
text
#09060D
muted
#7B7A7D

Preview Lab

Preview with #403165

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

Preview Lab → · Contrast checker → · Palette generator →

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