#403F80#403F80

#403F80 is a dark, moderate blue. Relative luminance 0.062; OKLCH L 40.3% C 0.107 H 281.2°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#403F80
RGBrgb(64, 63, 128)
HSLhsl(241, 34%, 37%)
HSVhsv(241, 51%, 50%)
CMYKcmyk(50%, 50.8%, 0%, 49.8%)
CIE-LABlab(29.92, 19.23, -36.76)
CIE-LCHlch(29.92, 41.48, 297.62°)
OKLaboklab(40.34% 0.0207 -0.1045)
OKLCHoklch(40.34% 0.107 281.2)
XYZxyz(7.7870, 6.2031, 21.2049)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403F80 #7F803F
analogous
#3F5F80 #403F80 #603F80
triadic
#403F80 #80403F #3F8040
tetradic
#403F80 #803F5F #7F803F #3F8060
square
#403F80 #803F5F #7F803F #3F8060
split-complementary
#403F80 #80603F #5F803F
monochromatic
#17172E #2B2B57 #403F80 #5553A9 #7C7BBE

Accessibility & contrast

On white

9.37
#403F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#403F80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403F80
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403F80#FFFFFF#000000##FFFFFF
##403F801.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224982
Deuteranopia (green-blind)
#1D447F
Tritanopia (blue-blind)
#294D59
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #403f80;
/* rgb */ color: rgb(64, 63, 128);
/* oklch */ color: oklch(40.3% 0.107 281.2);
Tailwind
colors: {
  custom: {
    50: '#7974a5',
    500: '#403f80',
    950: '#000000',
  },
}
SCSS
$custom: #403f80;
$custom-light: #7974a5;
$custom-dark: #000000;
JSON
{
  "hex": "#403f80",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 128
  },
  "hsl": {
    "h": 240.923,
    "s": 34.031,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40344,
    "c": 0.10658,
    "h": 281.2
  },
  "luminance": 0.06204
}

Semantic roles & 50–950 ramp

primary
#403F80
secondary
#A8A872
accent
#CA5EC8
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#09080F
muted
#7B7B7F

Preview Lab

Preview with #403F80

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

Preview Lab → · Contrast checker → · Palette generator →

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