#403EB6#403EB6

#403EB6 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.5% C 0.184 H 276.6°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#403EB6
RGBrgb(64, 62, 182)
HSLhsl(241, 49%, 48%)
HSVhsv(241, 66%, 71%)
CMYKcmyk(64.8%, 65.9%, 0%, 28.6%)
CIE-LABlab(33.80, 38.11, -63.26)
CIE-LCHlch(33.80, 73.85, 301.06°)
OKLaboklab(44.51% 0.0212 -0.1824)
OKLCHoklch(44.51% 0.184 276.6)
XYZxyz(12.2777, 7.9116, 45.1270)
Luminance0.0791 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403EB6 #B4B63E
analogous
#3E78B6 #403EB6 #7C3EB6
triadic
#403EB6 #B6403E #3EB640
tetradic
#403EB6 #B63E78 #B4B63E #3EB67C
square
#403EB6 #B63E78 #B4B63E #3EB67C
split-complementary
#403EB6 #B67C3E #78B63E
monochromatic
#201F5B #302E88 #403EB6 #6866CB #9594DB

Accessibility & contrast

On white

8.13
#403EB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#403EB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403EB6
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403EB6#FFFFFF#000000##FFFFFF
##403EB61.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BA
Deuteranopia (green-blind)
#004AB4
Tritanopia (blue-blind)
#005D74
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #403eb6;
/* rgb */ color: rgb(64, 62, 182);
/* oklch */ color: oklch(44.5% 0.184 276.6);
Tailwind
colors: {
  custom: {
    50: '#8374cd',
    500: '#403eb6',
    950: '#000000',
  },
}
SCSS
$custom: #403eb6;
$custom-light: #8374cd;
$custom-dark: #000000;
JSON
{
  "hex": "#403eb6",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 182
  },
  "hsl": {
    "h": 241,
    "s": 49.18,
    "l": 47.843
  },
  "oklch": {
    "l": 0.4451,
    "c": 0.18366,
    "h": 276.6
  },
  "luminance": 0.07913
}

Semantic roles & 50–950 ramp

primary
#403EB6
secondary
#C5C68A
accent
#D94FD6
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #403EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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