#403EB3#403EB3

#403EB3 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.2% C 0.180 H 276.9°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#403EB3
RGBrgb(64, 62, 179)
HSLhsl(241, 49%, 47%)
HSVhsv(241, 65%, 70%)
CMYKcmyk(64.2%, 65.4%, 0%, 29.8%)
CIE-LABlab(33.54, 37.10, -61.90)
CIE-LCHlch(33.54, 72.17, 300.94°)
OKLaboklab(44.24% 0.0215 -0.1785)
OKLCHoklch(44.24% 0.18 276.9)
XYZxyz(11.9710, 7.7889, 43.5117)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403EB3 #B1B33E
analogous
#3E76B3 #403EB3 #7B3EB3
triadic
#403EB3 #B3403E #3EB340
tetradic
#403EB3 #B33E76 #B1B33E #3EB37B
square
#403EB3 #B33E76 #B1B33E #3EB37B
split-complementary
#403EB3 #B37B3E #76B33E
monochromatic
#1F1F58 #302E86 #403EB3 #6665CA #9392D9

Accessibility & contrast

On white

8.21
#403EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#403EB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403EB3
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403EB3#FFFFFF#000000##FFFFFF
##403EB31.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#004AB1
Tritanopia (blue-blind)
#005C73
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #403eb3;
/* rgb */ color: rgb(64, 62, 179);
/* oklch */ color: oklch(44.2% 0.180 276.9);
Tailwind
colors: {
  custom: {
    50: '#8274cb',
    500: '#403eb3',
    950: '#000000',
  },
}
SCSS
$custom: #403eb3;
$custom-light: #8274cb;
$custom-dark: #000000;
JSON
{
  "hex": "#403eb3",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 179
  },
  "hsl": {
    "h": 241.026,
    "s": 48.548,
    "l": 47.255
  },
  "oklch": {
    "l": 0.44242,
    "c": 0.17975,
    "h": 276.9
  },
  "luminance": 0.0779
}

Semantic roles & 50–950 ramp

primary
#403EB3
secondary
#C3C588
accent
#D850D6
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #403EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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