#403EA8#403EA8

#403EA8 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.3% C 0.165 H 277.8°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#403EA8
RGBrgb(64, 62, 168)
HSLhsl(241, 46%, 45%)
HSVhsv(241, 63%, 66%)
CMYKcmyk(61.9%, 63.1%, 0%, 34.1%)
CIE-LABlab(32.62, 33.39, -56.85)
CIE-LCHlch(32.62, 65.93, 300.43°)
OKLaboklab(43.28% 0.0224 -0.1636)
OKLCHoklch(43.28% 0.165 277.8)
XYZxyz(10.9026, 7.3616, 37.8846)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403EA8 #A6A83E
analogous
#3E71A8 #403EA8 #753EA8
triadic
#403EA8 #A8403E #3EA840
tetradic
#403EA8 #A83E71 #A6A83E #3EA875
square
#403EA8 #A83E71 #A6A83E #3EA875
split-complementary
#403EA8 #A8753E #71A83E
monochromatic
#1E1D4F #2F2E7B #403EA8 #615FC4 #8D8CD5

Accessibility & contrast

On white

8.49
#403EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#403EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403EA8
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403EA8#FFFFFF#000000##FFFFFF
##403EA81.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AB
Deuteranopia (green-blind)
#0048A6
Tritanopia (blue-blind)
#00586D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #403ea8;
/* rgb */ color: rgb(64, 62, 168);
/* oklch */ color: oklch(43.3% 0.165 277.8);
Tailwind
colors: {
  custom: {
    50: '#8073c3',
    500: '#403ea8',
    950: '#000000',
  },
}
SCSS
$custom: #403ea8;
$custom-light: #8073c3;
$custom-dark: #000000;
JSON
{
  "hex": "#403ea8",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 168
  },
  "hsl": {
    "h": 241.132,
    "s": 46.087,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43282,
    "c": 0.16516,
    "h": 277.8
  },
  "luminance": 0.07362
}

Semantic roles & 50–950 ramp

primary
#403EA8
secondary
#BEBF83
accent
#D652D3
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #403EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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