#403BAA#403BAA

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

Color values

HEX#403BAA
RGBrgb(64, 59, 170)
HSLhsl(243, 48%, 45%)
HSVhsv(243, 65%, 67%)
CMYKcmyk(62.4%, 65.3%, 0%, 33.3%)
CIE-LABlab(32.08, 35.93, -58.93)
CIE-LCHlch(32.08, 69.01, 301.37°)
OKLaboklab(42.94% 0.0249 -0.1698)
OKLCHoklch(42.94% 0.172 278.3)
XYZxyz(10.9317, 7.1194, 38.8205)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403BAA #A5AA3B
analogous
#3B6DAA #403BAA #783BAA
triadic
#403BAA #AA403B #3BAA40
tetradic
#403BAA #AA3B6D #A5AA3B #3BAA78
square
#403BAA #AA3B6D #A5AA3B #3BAA78
split-complementary
#403BAA #AA783B #6DAA3B
monochromatic
#1E1B4F #2F2B7D #403BAA #615CC6 #8D89D6

Accessibility & contrast

On white

8.66
#403BAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#403BAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403BAA
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403BAA#FFFFFF#000000##FFFFFF
##403BAA1.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AE
Deuteranopia (green-blind)
#0047A8
Tritanopia (blue-blind)
#00576D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #403baa;
/* rgb */ color: rgb(64, 59, 170);
/* oklch */ color: oklch(42.9% 0.172 278.3);
Tailwind
colors: {
  custom: {
    50: '#8171c4',
    500: '#403baa',
    950: '#000000',
  },
}
SCSS
$custom: #403baa;
$custom-light: #8171c4;
$custom-dark: #000000;
JSON
{
  "hex": "#403baa",
  "rgb": {
    "r": 64,
    "g": 59,
    "b": 170
  },
  "hsl": {
    "h": 242.703,
    "s": 48.472,
    "l": 44.902
  },
  "oklch": {
    "l": 0.4294,
    "c": 0.17156,
    "h": 278.3
  },
  "luminance": 0.0712
}

Semantic roles & 50–950 ramp

primary
#403BAA
secondary
#BEC080
accent
#D850D2
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #403BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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