#403EBB#403EBB

#403EBB is a dark, vivid blue. Relative luminance 0.081; OKLCH L 45.0% C 0.190 H 276.3°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#403EBB
RGBrgb(64, 62, 187)
HSLhsl(241, 50%, 49%)
HSVhsv(241, 67%, 73%)
CMYKcmyk(65.8%, 66.8%, 0%, 26.7%)
CIE-LABlab(34.24, 39.78, -65.49)
CIE-LCHlch(34.24, 76.63, 301.27°)
OKLaboklab(44.96% 0.0207 -0.189)
OKLCHoklch(44.96% 0.19 276.3)
XYZxyz(12.8037, 8.1220, 47.8970)
Luminance0.0812 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403EBB #B9BB3E
analogous
#3E7BBB #403EBB #7F3EBB
triadic
#403EBB #BB403E #3EBB40
tetradic
#403EBB #BB3E7B #B9BB3E #3EBB7F
square
#403EBB #BB3E7B #B9BB3E #3EBB7F
split-complementary
#403EBB #BB7F3E #7BBB3E
monochromatic
#21205F #302F8D #403EBB #6B69CD #9897DC

Accessibility & contrast

On white

8.00
#403EBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#403EBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403EBB
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403EBB#FFFFFF#000000##FFFFFF
##403EBB1.008.002.628.00
#FFFFFF8.001.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BF
Deuteranopia (green-blind)
#004BB9
Tritanopia (blue-blind)
#005F77
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #403ebb;
/* rgb */ color: rgb(64, 62, 187);
/* oklch */ color: oklch(45.0% 0.190 276.3);
Tailwind
colors: {
  custom: {
    50: '#8474d1',
    500: '#403ebb',
    950: '#000000',
  },
}
SCSS
$custom: #403ebb;
$custom-light: #8474d1;
$custom-dark: #000000;
JSON
{
  "hex": "#403ebb",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 187
  },
  "hsl": {
    "h": 240.96,
    "s": 50.201,
    "l": 48.824
  },
  "oklch": {
    "l": 0.44963,
    "c": 0.19012,
    "h": 276.3
  },
  "luminance": 0.08123
}

Semantic roles & 50–950 ramp

primary
#403EBB
secondary
#C7C88D
accent
#DA4ED7
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #403EBB

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

Preview Lab → · Contrast checker → · Palette generator →

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