#403E79#403E79

#403E79 is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.7% C 0.097 H 282.5°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#403E79
RGBrgb(64, 62, 121)
HSLhsl(242, 32%, 36%)
HSVhsv(242, 49%, 47%)
CMYKcmyk(47.1%, 48.8%, 0%, 52.5%)
CIE-LABlab(29.20, 17.59, -33.53)
CIE-LCHlch(29.20, 37.86, 297.69°)
OKLaboklab(39.66% 0.0211 -0.0951)
OKLCHoklch(39.66% 0.097 282.5)
XYZxyz(7.2871, 5.9154, 18.8433)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403E79 #77793E
analogous
#3E5979 #403E79 #5D3E79
triadic
#403E79 #79403E #3E7940
tetradic
#403E79 #793E59 #77793E #3E795D
square
#403E79 #793E59 #77793E #3E795D
split-complementary
#403E79 #795D3E #59793E
monochromatic
#151528 #2B2951 #403E79 #5553A1 #7A78BA

Accessibility & contrast

On white

9.62
#403E79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#403E79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403E79
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403E79#FFFFFF#000000##FFFFFF
##403E791.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26477B
Deuteranopia (green-blind)
#234378
Tritanopia (blue-blind)
#2D4A55
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #403e79;
/* rgb */ color: rgb(64, 62, 121);
/* oklch */ color: oklch(39.7% 0.097 282.5);
Tailwind
colors: {
  custom: {
    50: '#7873a0',
    500: '#403e79',
    950: '#000000',
  },
}
SCSS
$custom: #403e79;
$custom-light: #7873a0;
$custom-dark: #000000;
JSON
{
  "hex": "#403e79",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 121
  },
  "hsl": {
    "h": 242.034,
    "s": 32.24,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39655,
    "c": 0.0974,
    "h": 282.5
  },
  "luminance": 0.05916
}

Semantic roles & 50–950 ramp

primary
#403E79
secondary
#A2A46F
accent
#C85FC5
background
#F7F6F9
surface
#EDECF2
border
#C8C7CC
text
#09080F
muted
#7B7B7E

Preview Lab

Preview with #403E79

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

Preview Lab → · Contrast checker → · Palette generator →

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