#403EB2#403EB2

#403EB2 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 44.2% C 0.178 H 277.0°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#403EB2
RGBrgb(64, 62, 178)
HSLhsl(241, 48%, 47%)
HSVhsv(241, 65%, 70%)
CMYKcmyk(64%, 65.2%, 0%, 30.2%)
CIE-LABlab(33.45, 36.76, -61.45)
CIE-LCHlch(33.45, 71.61, 300.89°)
OKLaboklab(44.15% 0.0216 -0.1771)
OKLCHoklch(44.15% 0.178 277)
XYZxyz(11.8702, 7.7486, 42.9809)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403EB2 #B0B23E
analogous
#3E76B2 #403EB2 #7A3EB2
triadic
#403EB2 #B2403E #3EB240
tetradic
#403EB2 #B23E76 #B0B23E #3EB27A
square
#403EB2 #B23E76 #B0B23E #3EB27A
split-complementary
#403EB2 #B27A3E #76B23E
monochromatic
#1F1E57 #302E85 #403EB2 #6664C9 #9392D9

Accessibility & contrast

On white

8.24
#403EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#403EB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403EB2
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403EB2#FFFFFF#000000##FFFFFF
##403EB21.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#004AB0
Tritanopia (blue-blind)
#005C72
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #403eb2;
/* rgb */ color: rgb(64, 62, 178);
/* oklch */ color: oklch(44.2% 0.178 277.0);
Tailwind
colors: {
  custom: {
    50: '#8274ca',
    500: '#403eb2',
    950: '#000000',
  },
}
SCSS
$custom: #403eb2;
$custom-light: #8274ca;
$custom-dark: #000000;
JSON
{
  "hex": "#403eb2",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 178
  },
  "hsl": {
    "h": 241.034,
    "s": 48.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.44154,
    "c": 0.17845,
    "h": 277
  },
  "luminance": 0.0775
}

Semantic roles & 50–950 ramp

primary
#403EB2
secondary
#C3C488
accent
#D850D6
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #403EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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