#403EB9#403EB9

#403EB9 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.8% C 0.188 H 276.4°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#403EB9
RGBrgb(64, 62, 185)
HSLhsl(241, 50%, 48%)
HSVhsv(241, 66%, 73%)
CMYKcmyk(65.4%, 66.5%, 0%, 27.5%)
CIE-LABlab(34.06, 39.11, -64.60)
CIE-LCHlch(34.06, 75.52, 301.19°)
OKLaboklab(44.78% 0.0209 -0.1864)
OKLCHoklch(44.78% 0.188 276.4)
XYZxyz(12.5911, 8.0370, 46.7773)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403EB9 #B7B93E
analogous
#3E79B9 #403EB9 #7D3EB9
triadic
#403EB9 #B9403E #3EB940
tetradic
#403EB9 #B93E79 #B7B93E #3EB97D
square
#403EB9 #B93E79 #B7B93E #3EB97D
split-complementary
#403EB9 #B97D3E #79B93E
monochromatic
#201F5D #302F8B #403EB9 #6968CC #9796DC

Accessibility & contrast

On white

8.05
#403EB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#403EB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403EB9
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403EB9#FFFFFF#000000##FFFFFF
##403EB91.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BD
Deuteranopia (green-blind)
#004BB7
Tritanopia (blue-blind)
#005E76
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #403eb9;
/* rgb */ color: rgb(64, 62, 185);
/* oklch */ color: oklch(44.8% 0.188 276.4);
Tailwind
colors: {
  custom: {
    50: '#8474cf',
    500: '#403eb9',
    950: '#000000',
  },
}
SCSS
$custom: #403eb9;
$custom-light: #8474cf;
$custom-dark: #000000;
JSON
{
  "hex": "#403eb9",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 185
  },
  "hsl": {
    "h": 240.976,
    "s": 49.798,
    "l": 48.431
  },
  "oklch": {
    "l": 0.44781,
    "c": 0.18755,
    "h": 276.4
  },
  "luminance": 0.08038
}

Semantic roles & 50–950 ramp

primary
#403EB9
secondary
#C6C78C
accent
#D94ED7
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #403EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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