#403EB8#403EB8

#403EB8 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.7% C 0.186 H 276.5°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#403EB8
RGBrgb(64, 62, 184)
HSLhsl(241, 50%, 48%)
HSVhsv(241, 66%, 72%)
CMYKcmyk(65.2%, 66.3%, 0%, 27.8%)
CIE-LABlab(33.97, 38.78, -64.15)
CIE-LCHlch(33.97, 74.96, 301.15°)
OKLaboklab(44.69% 0.021 -0.1851)
OKLCHoklch(44.69% 0.186 276.5)
XYZxyz(12.4859, 7.9949, 46.2233)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403EB8 #B6B83E
analogous
#3E79B8 #403EB8 #7D3EB8
triadic
#403EB8 #B8403E #3EB840
tetradic
#403EB8 #B83E79 #B6B83E #3EB87D
square
#403EB8 #B83E79 #B6B83E #3EB87D
split-complementary
#403EB8 #B87D3E #79B83E
monochromatic
#201F5C #302F8A #403EB8 #6967CC #9695DB

Accessibility & contrast

On white

8.08
#403EB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#403EB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403EB8
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403EB8#FFFFFF#000000##FFFFFF
##403EB81.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BC
Deuteranopia (green-blind)
#004BB6
Tritanopia (blue-blind)
#005E75
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #403eb8;
/* rgb */ color: rgb(64, 62, 184);
/* oklch */ color: oklch(44.7% 0.186 276.5);
Tailwind
colors: {
  custom: {
    50: '#8374ce',
    500: '#403eb8',
    950: '#000000',
  },
}
SCSS
$custom: #403eb8;
$custom-light: #8374ce;
$custom-dark: #000000;
JSON
{
  "hex": "#403eb8",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 184
  },
  "hsl": {
    "h": 240.984,
    "s": 49.593,
    "l": 48.235
  },
  "oklch": {
    "l": 0.4469,
    "c": 0.18626,
    "h": 276.5
  },
  "luminance": 0.07996
}

Semantic roles & 50–950 ramp

primary
#403EB8
secondary
#C6C78B
accent
#D94FD7
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #403EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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