#403F7D#403F7D

#403F7D is a dark, moderate blue. Relative luminance 0.061; OKLCH L 40.1% C 0.102 H 281.5°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#403F7D
RGBrgb(64, 63, 125)
HSLhsl(241, 33%, 37%)
HSVhsv(241, 50%, 49%)
CMYKcmyk(48.8%, 49.6%, 0%, 51%)
CIE-LABlab(29.73, 18.24, -35.19)
CIE-LCHlch(29.73, 39.64, 297.40°)
OKLaboklab(40.14% 0.0203 -0.0999)
OKLCHoklch(40.14% 0.102 281.5)
XYZxyz(7.5924, 6.1253, 20.1803)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403F7D #7C7D3F
analogous
#3F5D7D #403F7D #5F3F7D
triadic
#403F7D #7D403F #3F7D40
tetradic
#403F7D #7D3F5D #7C7D3F #3F7D5F
square
#403F7D #7D3F5D #7C7D3F #3F7D5F
split-complementary
#403F7D #7D5F3F #5D7D3F
monochromatic
#16162C #2B2A54 #403F7D #5554A6 #7B7ABC

Accessibility & contrast

On white

9.44
#403F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#403F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403F7D
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403F7D#FFFFFF#000000##FFFFFF
##403F7D1.009.442.239.44
#FFFFFF9.441.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25487F
Deuteranopia (green-blind)
#21447C
Tritanopia (blue-blind)
#2B4C58
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #403f7d;
/* rgb */ color: rgb(64, 63, 125);
/* oklch */ color: oklch(40.1% 0.102 281.5);
Tailwind
colors: {
  custom: {
    50: '#7974a3',
    500: '#403f7d',
    950: '#000000',
  },
}
SCSS
$custom: #403f7d;
$custom-light: #7974a3;
$custom-dark: #000000;
JSON
{
  "hex": "#403f7d",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 125
  },
  "hsl": {
    "h": 240.968,
    "s": 32.979,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40136,
    "c": 0.102,
    "h": 281.5
  },
  "luminance": 0.06126
}

Semantic roles & 50–950 ramp

primary
#403F7D
secondary
#A6A671
accent
#C95FC7
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#09080F
muted
#7B7B7F

Preview Lab

Preview with #403F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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