#403CB4#403CB4

#403CB4 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 44.0% C 0.183 H 277.2°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#403CB4
RGBrgb(64, 60, 180)
HSLhsl(242, 50%, 47%)
HSVhsv(242, 67%, 71%)
CMYKcmyk(64.4%, 66.7%, 0%, 29.4%)
CIE-LABlab(33.17, 38.65, -63.10)
CIE-LCHlch(33.17, 74.00, 301.49°)
OKLaboklab(44% 0.023 -0.182)
OKLCHoklch(44% 0.183 277.2)
XYZxyz(11.9658, 7.6160, 44.0106)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403CB4 #B0B43C
analogous
#3C74B4 #403CB4 #7C3CB4
triadic
#403CB4 #B4403C #3CB440
tetradic
#403CB4 #B43C74 #B0B43C #3CB47C
square
#403CB4 #B43C74 #B0B43C #3CB47C
split-complementary
#403CB4 #B47C3C #74B43C
monochromatic
#1F1D58 #302D86 #403CB4 #6662CB #9390DA

Accessibility & contrast

On white

8.32
#403CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#403CB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403CB4
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403CB4#FFFFFF#000000##FFFFFF
##403CB41.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B8
Deuteranopia (green-blind)
#0049B2
Tritanopia (blue-blind)
#005B73
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #403cb4;
/* rgb */ color: rgb(64, 60, 180);
/* oklch */ color: oklch(44.0% 0.183 277.2);
Tailwind
colors: {
  custom: {
    50: '#8372cb',
    500: '#403cb4',
    950: '#000000',
  },
}
SCSS
$custom: #403cb4;
$custom-light: #8372cb;
$custom-dark: #000000;
JSON
{
  "hex": "#403cb4",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 180
  },
  "hsl": {
    "h": 242,
    "s": 50,
    "l": 47.059
  },
  "oklch": {
    "l": 0.44001,
    "c": 0.18343,
    "h": 277.2
  },
  "luminance": 0.07617
}

Semantic roles & 50–950 ramp

primary
#403CB4
secondary
#C3C587
accent
#DA4ED5
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #403CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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