#403E72#403E72

#403E72 is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.2% C 0.086 H 283.4°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#403E72
RGBrgb(64, 62, 114)
HSLhsl(242, 30%, 35%)
HSVhsv(242, 46%, 45%)
CMYKcmyk(43.9%, 45.6%, 0%, 55.3%)
CIE-LABlab(28.77, 15.33, -29.79)
CIE-LCHlch(28.77, 33.50, 297.23°)
OKLaboklab(39.2% 0.02 -0.0841)
OKLCHoklch(39.2% 0.086 283.4)
XYZxyz(6.8734, 5.7499, 16.6640)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403E72 #70723E
analogous
#3E5672 #403E72 #5A3E72
triadic
#403E72 #72403E #3E7240
tetradic
#403E72 #723E56 #70723E #3E725A
square
#403E72 #723E56 #70723E #3E725A
split-complementary
#403E72 #725A3E #56723E
monochromatic
#131323 #2A284A #403E72 #56549A #7876B4

Accessibility & contrast

On white

9.77
#403E72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#403E72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403E72
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403E72#FFFFFF#000000##FFFFFF
##403E721.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4674
Deuteranopia (green-blind)
#294271
Tritanopia (blue-blind)
#314852
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #403e72;
/* rgb */ color: rgb(64, 62, 114);
/* oklch */ color: oklch(39.2% 0.086 283.4);
Tailwind
colors: {
  custom: {
    50: '#78739b',
    500: '#403e72',
    950: '#000000',
  },
}
SCSS
$custom: #403e72;
$custom-light: #78739b;
$custom-dark: #000000;
JSON
{
  "hex": "#403e72",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 114
  },
  "hsl": {
    "h": 242.308,
    "s": 29.545,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39195,
    "c": 0.08648,
    "h": 283.4
  },
  "luminance": 0.0575
}

Semantic roles & 50–950 ramp

primary
#403E72
secondary
#9D9F6D
accent
#C662C2
background
#F7F6F9
surface
#EDECF2
border
#C8C7CC
text
#09080E
muted
#7B7B7E

Preview Lab

Preview with #403E72

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

Preview Lab → · Contrast checker → · Palette generator →

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