#403F5F#403F5F

#403F5F is a dark, muted blue. Relative luminance 0.055; OKLCH L 38.3% C 0.054 H 285.0°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#403F5F
RGBrgb(64, 63, 95)
HSLhsl(242, 20%, 31%)
HSVhsv(242, 34%, 37%)
CMYKcmyk(32.6%, 33.7%, 0%, 62.7%)
CIE-LABlab(28.04, 8.79, -18.79)
CIE-LCHlch(28.04, 20.75, 295.08°)
OKLaboklab(38.3% 0.014 -0.0522)
OKLCHoklch(38.3% 0.054 285)
XYZxyz(5.9569, 5.4711, 11.5664)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403F5F #5E5F3F
analogous
#3F4E5F #403F5F #503F5F
triadic
#403F5F #5F403F #3F5F40
tetradic
#403F5F #5F3F4E #5E5F3F #3F5F50
square
#403F5F #5F3F4E #5E5F3F #3F5F50
split-complementary
#403F5F #5F503F #4E5F3F
monochromatic
#0E0E15 #27273A #403F5F #595784 #7675A3

Accessibility & contrast

On white

10.03
#403F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#403F5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403F5F
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403F5F#FFFFFF#000000##FFFFFF
##403F5F1.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#364360
Deuteranopia (green-blind)
#35415E
Tritanopia (blue-blind)
#38454A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #403f5f;
/* rgb */ color: rgb(64, 63, 95);
/* oklch */ color: oklch(38.3% 0.054 285.0);
Tailwind
colors: {
  custom: {
    50: '#76748c',
    500: '#403f5f',
    950: '#000000',
  },
}
SCSS
$custom: #403f5f;
$custom-light: #76748c;
$custom-dark: #000000;
JSON
{
  "hex": "#403f5f",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 95
  },
  "hsl": {
    "h": 241.875,
    "s": 20.253,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38297,
    "c": 0.05407,
    "h": 285
  },
  "luminance": 0.05471
}

Semantic roles & 50–950 ramp

primary
#403F5F
secondary
#8D8F6B
accent
#BD6BBA
background
#F7F7F8
surface
#EDEDF0
border
#C8C8CB
text
#08080C
muted
#7B7B7D

Preview Lab

Preview with #403F5F

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

Preview Lab → · Contrast checker → · Palette generator →

#403F5F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva