#403BA2#403BA2

#403BA2 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.2% C 0.161 H 279.1°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#403BA2
RGBrgb(64, 59, 162)
HSLhsl(243, 47%, 43%)
HSVhsv(243, 64%, 64%)
CMYKcmyk(60.5%, 63.6%, 0%, 36.5%)
CIE-LABlab(31.41, 33.25, -55.21)
CIE-LCHlch(31.41, 64.45, 301.06°)
OKLaboklab(42.24% 0.0256 -0.1588)
OKLCHoklch(42.24% 0.161 279.1)
XYZxyz(10.1978, 6.8258, 34.9555)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403BA2 #9DA23B
analogous
#3B69A2 #403BA2 #733BA2
triadic
#403BA2 #A2403B #3BA240
tetradic
#403BA2 #A23B69 #9DA23B #3BA273
square
#403BA2 #A23B69 #9DA23B #3BA273
split-complementary
#403BA2 #A2733B #69A23B
monochromatic
#1D1A48 #2E2B75 #403BA2 #5D58C2 #8985D3

Accessibility & contrast

On white

8.88
#403BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#403BA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403BA2
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403BA2#FFFFFF#000000##FFFFFF
##403BA21.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA5
Deuteranopia (green-blind)
#0046A0
Tritanopia (blue-blind)
#005569
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #403ba2;
/* rgb */ color: rgb(64, 59, 162);
/* oklch */ color: oklch(42.2% 0.161 279.1);
Tailwind
colors: {
  custom: {
    50: '#7f71be',
    500: '#403ba2',
    950: '#000000',
  },
}
SCSS
$custom: #403ba2;
$custom-light: #7f71be;
$custom-dark: #000000;
JSON
{
  "hex": "#403ba2",
  "rgb": {
    "r": 64,
    "g": 59,
    "b": 162
  },
  "hsl": {
    "h": 242.913,
    "s": 46.606,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42243,
    "c": 0.16087,
    "h": 279.1
  },
  "luminance": 0.06827
}

Semantic roles & 50–950 ramp

primary
#403BA2
secondary
#B9BD7C
accent
#D652D0
background
#F8F6FB
surface
#EFECF7
border
#CAC7D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #403BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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