#403F71#403F71

#403F71 is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.3% C 0.083 H 282.8°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#403F71
RGBrgb(64, 63, 113)
HSLhsl(241, 28%, 35%)
HSVhsv(241, 44%, 44%)
CMYKcmyk(43.4%, 44.2%, 0%, 55.7%)
CIE-LABlab(29.00, 14.34, -28.80)
CIE-LCHlch(29.00, 32.17, 296.47°)
OKLaboklab(39.35% 0.0184 -0.0812)
OKLCHoklch(39.35% 0.083 282.8)
XYZxyz(6.8716, 5.8370, 16.3842)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403F71 #70713F
analogous
#3F5771 #403F71 #593F71
triadic
#403F71 #71403F #3F7140
tetradic
#403F71 #713F57 #70713F #3F7159
square
#403F71 #713F57 #70713F #3F7159
split-complementary
#403F71 #71593F #57713F
monochromatic
#131322 #2A294A #403F71 #565598 #7877B3

Accessibility & contrast

On white

9.69
#403F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#403F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403F71
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403F71#FFFFFF#000000##FFFFFF
##403F711.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4673
Deuteranopia (green-blind)
#2B4370
Tritanopia (blue-blind)
#314952
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #403f71;
/* rgb */ color: rgb(64, 63, 113);
/* oklch */ color: oklch(39.3% 0.083 282.8);
Tailwind
colors: {
  custom: {
    50: '#77749a',
    500: '#403f71',
    950: '#000000',
  },
}
SCSS
$custom: #403f71;
$custom-light: #77749a;
$custom-dark: #000000;
JSON
{
  "hex": "#403f71",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 113
  },
  "hsl": {
    "h": 241.2,
    "s": 28.409,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39347,
    "c": 0.08329,
    "h": 282.8
  },
  "luminance": 0.05837
}

Semantic roles & 50–950 ramp

primary
#403F71
secondary
#9D9E6E
accent
#C563C3
background
#F7F7F9
surface
#EDEDF2
border
#C8C8CC
text
#09080E
muted
#7B7B7E

Preview Lab

Preview with #403F71

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

Preview Lab → · Contrast checker → · Palette generator →

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