#403EBA#403EBA

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

Color values

HEX#403EBA
RGBrgb(64, 62, 186)
HSLhsl(241, 50%, 49%)
HSVhsv(241, 67%, 73%)
CMYKcmyk(65.6%, 66.7%, 0%, 27.1%)
CIE-LABlab(34.15, 39.45, -65.05)
CIE-LCHlch(34.15, 76.07, 301.23°)
OKLaboklab(44.87% 0.0208 -0.1877)
OKLCHoklch(44.87% 0.189 276.3)
XYZxyz(12.6970, 8.0793, 47.3352)
Luminance0.0808 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403EBA #B8BA3E
analogous
#3E7ABA #403EBA #7E3EBA
triadic
#403EBA #BA403E #3EBA40
tetradic
#403EBA #BA3E7A #B8BA3E #3EBA7E
square
#403EBA #BA3E7A #B8BA3E #3EBA7E
split-complementary
#403EBA #BA7E3E #7ABA3E
monochromatic
#201F5E #302F8C #403EBA #6A68CD #9796DC

Accessibility & contrast

On white

8.03
#403EBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403EBA
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403EBA#FFFFFF#000000##FFFFFF
##403EBA1.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BE
Deuteranopia (green-blind)
#004BB8
Tritanopia (blue-blind)
#005F76
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #403eba;
/* rgb */ color: rgb(64, 62, 186);
/* oklch */ color: oklch(44.9% 0.189 276.3);
Tailwind
colors: {
  custom: {
    50: '#8474d0',
    500: '#403eba',
    950: '#000000',
  },
}
SCSS
$custom: #403eba;
$custom-light: #8474d0;
$custom-dark: #000000;
JSON
{
  "hex": "#403eba",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 186
  },
  "hsl": {
    "h": 240.968,
    "s": 50,
    "l": 48.627
  },
  "oklch": {
    "l": 0.44872,
    "c": 0.18883,
    "h": 276.3
  },
  "luminance": 0.0808
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #403EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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