#403175#403175

#403175 is a dark, moderate violet. Relative luminance 0.046; OKLCH L 36.8% C 0.112 H 289.9°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#403175
RGBrgb(64, 49, 117)
HSLhsl(253, 41%, 33%)
HSVhsv(253, 58%, 46%)
CMYKcmyk(45.3%, 58.1%, 0%, 54.1%)
CIE-LABlab(25.48, 24.88, -36.96)
CIE-LCHlch(25.48, 44.56, 303.95°)
OKLaboklab(36.79% 0.0382 -0.1052)
OKLCHoklch(36.79% 0.112 289.9)
XYZxyz(6.4227, 4.5708, 17.3700)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403175 #667531
analogous
#314475 #403175 #623175
triadic
#403175 #754031 #317540
tetradic
#403175 #753144 #667531 #317562
square
#403175 #753144 #667531 #317562
split-complementary
#403175 #756231 #447531
monochromatic
#110D1F #281F4A #403175 #5843A0 #7763BE

Accessibility & contrast

On white

10.97
#403175 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#403175 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403175
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403175#FFFFFF#000000##FFFFFF
##4031751.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3E77
Deuteranopia (green-blind)
#0F3B74
Tritanopia (blue-blind)
#31404E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #403175;
/* rgb */ color: rgb(64, 49, 117);
/* oklch */ color: oklch(36.8% 0.112 289.9);
Tailwind
colors: {
  custom: {
    50: '#79699d',
    500: '#403175',
    950: '#000000',
  },
}
SCSS
$custom: #403175;
$custom-light: #79699d;
$custom-dark: #000000;
JSON
{
  "hex": "#403175",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 117
  },
  "hsl": {
    "h": 253.235,
    "s": 40.964,
    "l": 32.549
  },
  "oklch": {
    "l": 0.36785,
    "c": 0.11192,
    "h": 289.9
  },
  "luminance": 0.04571
}

Semantic roles & 50–950 ramp

primary
#403175
secondary
#95A55D
accent
#D157B6
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#09060E
muted
#7B7A7E

Preview Lab

Preview with #403175

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

Preview Lab → · Contrast checker → · Palette generator →

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