#403EA2#403EA2

#403EA2 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.8% C 0.157 H 278.3°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#403EA2
RGBrgb(64, 62, 162)
HSLhsl(241, 45%, 44%)
HSVhsv(241, 62%, 64%)
CMYKcmyk(60.5%, 61.7%, 0%, 36.5%)
CIE-LABlab(32.13, 31.36, -54.03)
CIE-LCHlch(32.13, 62.47, 300.13°)
OKLaboklab(42.77% 0.0227 -0.1553)
OKLCHoklch(42.77% 0.157 278.3)
XYZxyz(10.3565, 7.1431, 35.0084)
Luminance0.0714 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403EA2 #A0A23E
analogous
#3E6EA2 #403EA2 #723EA2
triadic
#403EA2 #A2403E #3EA240
tetradic
#403EA2 #A23E6E #A0A23E #3EA272
square
#403EA2 #A23E6E #A0A23E #3EA272
split-complementary
#403EA2 #A2723E #6EA23E
monochromatic
#1D1C49 #2F2D76 #403EA2 #5E5CC1 #8A89D2

Accessibility & contrast

On white

8.65
#403EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#403EA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403EA2
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403EA2#FFFFFF#000000##FFFFFF
##403EA21.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#0047A0
Tritanopia (blue-blind)
#00566A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #403ea2;
/* rgb */ color: rgb(64, 62, 162);
/* oklch */ color: oklch(42.8% 0.157 278.3);
Tailwind
colors: {
  custom: {
    50: '#7f73be',
    500: '#403ea2',
    950: '#000000',
  },
}
SCSS
$custom: #403ea2;
$custom-light: #7f73be;
$custom-dark: #000000;
JSON
{
  "hex": "#403ea2",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 162
  },
  "hsl": {
    "h": 241.2,
    "s": 44.643,
    "l": 43.922
  },
  "oklch": {
    "l": 0.42774,
    "c": 0.15701,
    "h": 278.3
  },
  "luminance": 0.07144
}

Semantic roles & 50–950 ramp

primary
#403EA2
secondary
#BBBC80
accent
#D453D2
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #403EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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