#403BAB#403BAB

#403BAB is a dark, vivid blue. Relative luminance 0.072; OKLCH L 43.0% C 0.173 H 278.2°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#403BAB
RGBrgb(64, 59, 171)
HSLhsl(243, 49%, 45%)
HSVhsv(243, 65%, 67%)
CMYKcmyk(62.6%, 65.5%, 0%, 32.9%)
CIE-LABlab(32.16, 36.26, -59.39)
CIE-LCHlch(32.16, 69.58, 301.41°)
OKLaboklab(43.03% 0.0248 -0.1711)
OKLCHoklch(43.03% 0.173 278.2)
XYZxyz(11.0266, 7.1573, 39.3206)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403BAB #A6AB3B
analogous
#3B6EAB #403BAB #783BAB
triadic
#403BAB #AB403B #3BAB40
tetradic
#403BAB #AB3B6E #A6AB3B #3BAB78
square
#403BAB #AB3B6E #A6AB3B #3BAB78
split-complementary
#403BAB #AB783B #6EAB3B
monochromatic
#1E1C50 #2F2B7D #403BAB #615CC7 #8D8AD7

Accessibility & contrast

On white

8.64
#403BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#403BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403BAB
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403BAB#FFFFFF#000000##FFFFFF
##403BAB1.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AF
Deuteranopia (green-blind)
#0047A9
Tritanopia (blue-blind)
#00586D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #403bab;
/* rgb */ color: rgb(64, 59, 171);
/* oklch */ color: oklch(43.0% 0.173 278.2);
Tailwind
colors: {
  custom: {
    50: '#8171c5',
    500: '#403bab',
    950: '#000000',
  },
}
SCSS
$custom: #403bab;
$custom-light: #8171c5;
$custom-dark: #000000;
JSON
{
  "hex": "#403bab",
  "rgb": {
    "r": 64,
    "g": 59,
    "b": 171
  },
  "hsl": {
    "h": 242.679,
    "s": 48.696,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43029,
    "c": 0.17288,
    "h": 278.2
  },
  "luminance": 0.07158
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #403BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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