#403BA4#403BA4

#403BA4 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.4% C 0.164 H 278.9°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#403BA4
RGBrgb(64, 59, 164)
HSLhsl(243, 47%, 44%)
HSVhsv(243, 64%, 64%)
CMYKcmyk(61%, 64%, 0%, 35.7%)
CIE-LABlab(31.57, 33.92, -56.15)
CIE-LCHlch(31.57, 65.60, 301.14°)
OKLaboklab(42.42% 0.0254 -0.1616)
OKLCHoklch(42.42% 0.164 278.9)
XYZxyz(10.3770, 6.8975, 35.8993)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403BA4 #9FA43B
analogous
#3B6AA4 #403BA4 #743BA4
triadic
#403BA4 #A4403B #3BA440
tetradic
#403BA4 #A43B6A #9FA43B #3BA474
square
#403BA4 #A43B6A #9FA43B #3BA474
split-complementary
#403BA4 #A4743B #6AA43B
monochromatic
#1D1B4A #2E2B77 #403BA4 #5E59C3 #8A86D3

Accessibility & contrast

On white

8.83
#403BA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#403BA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403BA4
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403BA4#FFFFFF#000000##FFFFFF
##403BA41.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA7
Deuteranopia (green-blind)
#0046A2
Tritanopia (blue-blind)
#00556A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #403ba4;
/* rgb */ color: rgb(64, 59, 164);
/* oklch */ color: oklch(42.4% 0.164 278.9);
Tailwind
colors: {
  custom: {
    50: '#8071c0',
    500: '#403ba4',
    950: '#000000',
  },
}
SCSS
$custom: #403ba4;
$custom-light: #8071c0;
$custom-dark: #000000;
JSON
{
  "hex": "#403ba4",
  "rgb": {
    "r": 64,
    "g": 59,
    "b": 164
  },
  "hsl": {
    "h": 242.857,
    "s": 47.085,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42415,
    "c": 0.16356,
    "h": 278.9
  },
  "luminance": 0.06898
}

Semantic roles & 50–950 ramp

primary
#403BA4
secondary
#BBBE7D
accent
#D751D0
background
#F8F6FB
surface
#EFECF7
border
#CAC7D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #403BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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