#403BA1#403BA1

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

Color values

HEX#403BA1
RGBrgb(64, 59, 161)
HSLhsl(243, 46%, 43%)
HSVhsv(243, 63%, 63%)
CMYKcmyk(60.2%, 63.4%, 0%, 36.9%)
CIE-LABlab(31.32, 32.91, -54.74)
CIE-LCHlch(31.32, 63.87, 301.02°)
OKLaboklab(42.16% 0.0256 -0.1574)
OKLCHoklch(42.16% 0.16 279.2)
XYZxyz(10.1093, 6.7904, 34.4893)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403BA1 #9CA13B
analogous
#3B69A1 #403BA1 #733BA1
triadic
#403BA1 #A1403B #3BA140
tetradic
#403BA1 #A13B69 #9CA13B #3BA173
square
#403BA1 #A13B69 #9CA13B #3BA173
split-complementary
#403BA1 #A1733B #69A13B
monochromatic
#1C1A47 #2E2B74 #403BA1 #5D58C2 #8884D2

Accessibility & contrast

On white

8.91
#403BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#403BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403BA1
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403BA1#FFFFFF#000000##FFFFFF
##403BA11.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA4
Deuteranopia (green-blind)
#00469F
Tritanopia (blue-blind)
#005468
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #403ba1;
/* rgb */ color: rgb(64, 59, 161);
/* oklch */ color: oklch(42.2% 0.160 279.2);
Tailwind
colors: {
  custom: {
    50: '#7f71be',
    500: '#403ba1',
    950: '#000000',
  },
}
SCSS
$custom: #403ba1;
$custom-light: #7f71be;
$custom-dark: #000000;
JSON
{
  "hex": "#403ba1",
  "rgb": {
    "r": 64,
    "g": 59,
    "b": 161
  },
  "hsl": {
    "h": 242.941,
    "s": 46.364,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42157,
    "c": 0.15952,
    "h": 279.2
  },
  "luminance": 0.06791
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #403BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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