#403850#403850

#403850 is a dark, muted violet. Relative luminance 0.045; OKLCH L 35.9% C 0.042 H 299.6°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#403850
RGBrgb(64, 56, 80)
HSLhsl(260, 18%, 27%)
HSVhsv(260, 30%, 31%)
CMYKcmyk(20%, 30%, 0%, 68.6%)
CIE-LABlab(25.25, 9.24, -13.31)
CIE-LCHlch(25.25, 16.20, 304.76°)
OKLaboklab(35.92% 0.0207 -0.0365)
OKLCHoklch(35.92% 0.042 299.6)
XYZxyz(4.9762, 4.4975, 8.1938)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403850 #485038
analogous
#383C50 #403850 #4C3850
triadic
#403850 #504038 #385040
tetradic
#403850 #50383C #485038 #38504C
square
#403850 #50383C #485038 #38504C
split-complementary
#403850 #504C38 #3C5038
monochromatic
#0E0D12 #231F2C #403850 #5D5174 #7A6B97

Accessibility & contrast

On white

11.05
#403850 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#403850 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403850
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403850#FFFFFF#000000##FFFFFF
##4038501.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#333C51
Deuteranopia (green-blind)
#343C4F
Tritanopia (blue-blind)
#3D3C40
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #403850;
/* rgb */ color: rgb(64, 56, 80);
/* oklch */ color: oklch(35.9% 0.042 299.6);
Tailwind
colors: {
  custom: {
    50: '#756e81',
    500: '#403850',
    950: '#000000',
  },
}
SCSS
$custom: #403850;
$custom-light: #756e81;
$custom-dark: #000000;
JSON
{
  "hex": "#403850",
  "rgb": {
    "r": 64,
    "g": 56,
    "b": 80
  },
  "hsl": {
    "h": 260,
    "s": 17.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.35919,
    "c": 0.04202,
    "h": 299.6
  },
  "luminance": 0.04498
}

Semantic roles & 50–950 ramp

primary
#403850
secondary
#778064
accent
#BA6DA1
background
#F7F6F7
surface
#EDEBEE
border
#C8C6C9
text
#08070A
muted
#7B7A7C

Preview Lab

Preview with #403850

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

Preview Lab → · Contrast checker → · Palette generator →

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