#403BAC#403BAC

#403BAC is a dark, vivid blue. Relative luminance 0.072; OKLCH L 43.1% C 0.174 H 278.1°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#403BAC
RGBrgb(64, 59, 172)
HSLhsl(243, 49%, 45%)
HSVhsv(243, 66%, 67%)
CMYKcmyk(62.8%, 65.7%, 0%, 32.5%)
CIE-LABlab(32.25, 36.60, -59.84)
CIE-LCHlch(32.25, 70.15, 301.45°)
OKLaboklab(43.12% 0.0247 -0.1724)
OKLCHoklch(43.12% 0.174 278.1)
XYZxyz(11.1223, 7.1956, 39.8245)
Luminance0.0720 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403BAC #A7AC3B
analogous
#3B6EAC #403BAC #783BAC
triadic
#403BAC #AC403B #3BAC40
tetradic
#403BAC #AC3B6E #A7AC3B #3BAC78
square
#403BAC #AC3B6E #A7AC3B #3BAC78
split-complementary
#403BAC #AC783B #6EAC3B
monochromatic
#1E1C51 #2F2B7E #403BAC #625DC7 #8E8AD7

Accessibility & contrast

On white

8.61
#403BAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#403BAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403BAC
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403BAC#FFFFFF#000000##FFFFFF
##403BAC1.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B0
Deuteranopia (green-blind)
#0047AA
Tritanopia (blue-blind)
#00586E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #403bac;
/* rgb */ color: rgb(64, 59, 172);
/* oklch */ color: oklch(43.1% 0.174 278.1);
Tailwind
colors: {
  custom: {
    50: '#8171c6',
    500: '#403bac',
    950: '#000000',
  },
}
SCSS
$custom: #403bac;
$custom-light: #8171c6;
$custom-dark: #000000;
JSON
{
  "hex": "#403bac",
  "rgb": {
    "r": 64,
    "g": 59,
    "b": 172
  },
  "hsl": {
    "h": 242.655,
    "s": 48.918,
    "l": 45.294
  },
  "oklch": {
    "l": 0.43117,
    "c": 0.1742,
    "h": 278.1
  },
  "luminance": 0.07196
}

Semantic roles & 50–950 ramp

primary
#403BAC
secondary
#BFC181
accent
#D84FD2
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #403BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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