#403174#403174

#403174 is a dark, moderate violet. Relative luminance 0.045; OKLCH L 36.7% C 0.110 H 290.2°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#403174
RGBrgb(64, 49, 116)
HSLhsl(253, 41%, 32%)
HSVhsv(253, 58%, 45%)
CMYKcmyk(44.8%, 57.8%, 0%, 54.5%)
CIE-LABlab(25.40, 24.57, -36.44)
CIE-LCHlch(25.40, 43.95, 303.99°)
OKLaboklab(36.71% 0.0381 -0.1037)
OKLCHoklch(36.71% 0.11 290.2)
XYZxyz(6.3642, 4.5474, 17.0620)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403174 #657431
analogous
#314374 #403174 #623174
triadic
#403174 #744031 #317440
tetradic
#403174 #743143 #657431 #317462
square
#403174 #743143 #657431 #317462
split-complementary
#403174 #746231 #437431
monochromatic
#110D1E #281F49 #403174 #58439F #7763BD

Accessibility & contrast

On white

11.00
#403174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403174
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403174#FFFFFF#000000##FFFFFF
##4031741.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3D76
Deuteranopia (green-blind)
#113B73
Tritanopia (blue-blind)
#313F4D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #403174;
/* rgb */ color: rgb(64, 49, 116);
/* oklch */ color: oklch(36.7% 0.110 290.2);
Tailwind
colors: {
  custom: {
    50: '#79699c',
    500: '#403174',
    950: '#000000',
  },
}
SCSS
$custom: #403174;
$custom-light: #79699c;
$custom-dark: #000000;
JSON
{
  "hex": "#403174",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 116
  },
  "hsl": {
    "h": 253.433,
    "s": 40.606,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3671,
    "c": 0.11047,
    "h": 290.2
  },
  "luminance": 0.04548
}

Semantic roles & 50–950 ramp

primary
#403174
secondary
#94A45C
accent
#D057B5
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#09060E
muted
#7B7A7E

Preview Lab

Preview with #403174

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

Preview Lab → · Contrast checker → · Palette generator →

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