#403EB4#403EB4

#403EB4 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.3% C 0.181 H 276.8°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#403EB4
RGBrgb(64, 62, 180)
HSLhsl(241, 49%, 47%)
HSVhsv(241, 66%, 71%)
CMYKcmyk(64.4%, 65.6%, 0%, 29.4%)
CIE-LABlab(33.63, 37.44, -62.35)
CIE-LCHlch(33.63, 72.73, 300.98°)
OKLaboklab(44.33% 0.0214 -0.1798)
OKLCHoklch(44.33% 0.181 276.8)
XYZxyz(12.0725, 7.8295, 44.0462)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403EB4 #B2B43E
analogous
#3E77B4 #403EB4 #7B3EB4
triadic
#403EB4 #B4403E #3EB440
tetradic
#403EB4 #B43E77 #B2B43E #3EB47B
square
#403EB4 #B43E77 #B2B43E #3EB47B
split-complementary
#403EB4 #B47B3E #77B43E
monochromatic
#201F59 #302E86 #403EB4 #6765CA #9493DA

Accessibility & contrast

On white

8.18
#403EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#403EB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403EB4
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403EB4#FFFFFF#000000##FFFFFF
##403EB41.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#004AB2
Tritanopia (blue-blind)
#005C73
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #403eb4;
/* rgb */ color: rgb(64, 62, 180);
/* oklch */ color: oklch(44.3% 0.181 276.8);
Tailwind
colors: {
  custom: {
    50: '#8374cb',
    500: '#403eb4',
    950: '#000000',
  },
}
SCSS
$custom: #403eb4;
$custom-light: #8374cb;
$custom-dark: #000000;
JSON
{
  "hex": "#403eb4",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 180
  },
  "hsl": {
    "h": 241.017,
    "s": 48.76,
    "l": 47.451
  },
  "oklch": {
    "l": 0.44331,
    "c": 0.18106,
    "h": 276.8
  },
  "luminance": 0.07831
}

Semantic roles & 50–950 ramp

primary
#403EB4
secondary
#C4C589
accent
#D84FD6
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #403EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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