#403D8E#403D8E

#403D8E is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.0% C 0.130 H 280.6°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#403D8E
RGBrgb(64, 61, 142)
HSLhsl(242, 40%, 40%)
HSVhsv(242, 57%, 56%)
CMYKcmyk(54.9%, 57%, 0%, 44.3%)
CIE-LABlab(30.35, 25.24, -44.74)
CIE-LCHlch(30.35, 51.36, 299.43°)
OKLaboklab(40.98% 0.024 -0.128)
OKLCHoklch(40.98% 0.13 280.6)
XYZxyz(8.6641, 6.3799, 26.3609)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403D8E #8B8E3D
analogous
#3D638E #403D8E #683D8E
triadic
#403D8E #8E403D #3D8E40
tetradic
#403D8E #8E3D63 #8B8E3D #3D8E68
square
#403D8E #8E3D63 #8B8E3D #3D8E68
split-complementary
#403D8E #8E683D #638E3D
monochromatic
#191838 #2D2B63 #403D8E #5753B5 #817EC8

Accessibility & contrast

On white

9.23
#403D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#403D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403D8E
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403D8E#FFFFFF#000000##FFFFFF
##403D8E1.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#054A91
Deuteranopia (green-blind)
#00448C
Tritanopia (blue-blind)
#1D505F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #403d8e;
/* rgb */ color: rgb(64, 61, 142);
/* oklch */ color: oklch(41.0% 0.130 280.6);
Tailwind
colors: {
  custom: {
    50: '#7c72b0',
    500: '#403d8e',
    950: '#000000',
  },
}
SCSS
$custom: #403d8e;
$custom-light: #7c72b0;
$custom-dark: #000000;
JSON
{
  "hex": "#403d8e",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 142
  },
  "hsl": {
    "h": 242.222,
    "s": 39.901,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40976,
    "c": 0.13026,
    "h": 280.6
  },
  "luminance": 0.0638
}

Semantic roles & 50–950 ramp

primary
#403D8E
secondary
#AFB175
accent
#D058CB
background
#F7F6FA
surface
#EEECF5
border
#C9C7CF
text
#0A0810
muted
#7C7B7F

Preview Lab

Preview with #403D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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