#403E7A#403E7A

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

Color values

HEX#403E7A
RGBrgb(64, 62, 122)
HSLhsl(242, 33%, 36%)
HSVhsv(242, 49%, 48%)
CMYKcmyk(47.5%, 49.2%, 0%, 52.2%)
CIE-LABlab(29.26, 17.92, -34.05)
CIE-LCHlch(29.26, 38.48, 297.75°)
OKLaboklab(39.72% 0.0213 -0.0966)
OKLCHoklch(39.72% 0.099 282.4)
XYZxyz(7.3488, 5.9400, 19.1679)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403E7A #787A3E
analogous
#3E5A7A #403E7A #5E3E7A
triadic
#403E7A #7A403E #3E7A40
tetradic
#403E7A #7A3E5A #787A3E #3E7A5E
square
#403E7A #7A3E5A #787A3E #3E7A5E
split-complementary
#403E7A #7A5E3E #5A7A3E
monochromatic
#151529 #2B2951 #403E7A #5553A3 #7A78BA

Accessibility & contrast

On white

9.60
#403E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#403E7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403E7A
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403E7A#FFFFFF#000000##FFFFFF
##403E7A1.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25477C
Deuteranopia (green-blind)
#224379
Tritanopia (blue-blind)
#2D4B56
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #403e7a;
/* rgb */ color: rgb(64, 62, 122);
/* oklch */ color: oklch(39.7% 0.099 282.4);
Tailwind
colors: {
  custom: {
    50: '#7973a1',
    500: '#403e7a',
    950: '#000000',
  },
}
SCSS
$custom: #403e7a;
$custom-light: #7973a1;
$custom-dark: #000000;
JSON
{
  "hex": "#403e7a",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 122
  },
  "hsl": {
    "h": 242,
    "s": 32.609,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39723,
    "c": 0.09895,
    "h": 282.4
  },
  "luminance": 0.0594
}

Semantic roles & 50–950 ramp

primary
#403E7A
secondary
#A3A56F
accent
#C95FC5
background
#F7F6F9
surface
#EEECF2
border
#C9C7CC
text
#09080F
muted
#7B7B7E

Preview Lab

Preview with #403E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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