#403AA2#403AA2

#403AA2 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.1% C 0.162 H 279.4°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#403AA2
RGBrgb(64, 58, 162)
HSLhsl(243, 47%, 43%)
HSVhsv(243, 64%, 64%)
CMYKcmyk(60.5%, 64.2%, 0%, 36.5%)
CIE-LABlab(31.17, 33.87, -55.60)
CIE-LCHlch(31.17, 65.10, 301.35°)
OKLaboklab(42.07% 0.0265 -0.16)
OKLCHoklch(42.07% 0.162 279.4)
XYZxyz(10.1469, 6.7240, 34.9386)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403AA2 #9CA23A
analogous
#3A68A2 #403AA2 #743AA2
triadic
#403AA2 #A2403A #3AA240
tetradic
#403AA2 #A23A68 #9CA23A #3AA274
square
#403AA2 #A23A68 #9CA23A #3AA274
split-complementary
#403AA2 #A2743A #68A23A
monochromatic
#1C1A48 #2E2A75 #403AA2 #5D57C3 #8884D3

Accessibility & contrast

On white

8.96
#403AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#403AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403AA2
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403AA2#FFFFFF#000000##FFFFFF
##403AA21.008.962.358.96
#FFFFFF8.961.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA5
Deuteranopia (green-blind)
#0045A0
Tritanopia (blue-blind)
#005468
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #403aa2;
/* rgb */ color: rgb(64, 58, 162);
/* oklch */ color: oklch(42.1% 0.162 279.4);
Tailwind
colors: {
  custom: {
    50: '#7f71be',
    500: '#403aa2',
    950: '#000000',
  },
}
SCSS
$custom: #403aa2;
$custom-light: #7f71be;
$custom-dark: #000000;
JSON
{
  "hex": "#403aa2",
  "rgb": {
    "r": 64,
    "g": 58,
    "b": 162
  },
  "hsl": {
    "h": 243.462,
    "s": 47.273,
    "l": 43.137
  },
  "oklch": {
    "l": 0.4207,
    "c": 0.16215,
    "h": 279.4
  },
  "luminance": 0.06725
}

Semantic roles & 50–950 ramp

primary
#403AA2
secondary
#B9BD7B
accent
#D751CF
background
#F8F6FB
surface
#EFECF7
border
#CAC7D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #403AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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