#403C8B#403C8B

#403C8B is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.6% C 0.127 H 281.4°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#403C8B
RGBrgb(64, 60, 139)
HSLhsl(243, 40%, 39%)
HSVhsv(243, 57%, 55%)
CMYKcmyk(54%, 56.8%, 0%, 45.5%)
CIE-LABlab(29.88, 24.88, -43.65)
CIE-LCHlch(29.88, 50.25, 299.68°)
OKLaboklab(40.55% 0.0251 -0.1248)
OKLCHoklch(40.55% 0.127 281.4)
XYZxyz(8.3890, 6.1853, 25.1729)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403C8B #878B3C
analogous
#3C608B #403C8B #683C8B
triadic
#403C8B #8B403C #3C8B40
tetradic
#403C8B #8B3C60 #878B3C #3C8B68
square
#403C8B #8B3C60 #878B3C #3C8B68
split-complementary
#403C8B #8B683C #608B3C
monochromatic
#191736 #2C2A60 #403C8B #5651B4 #7F7BC6

Accessibility & contrast

On white

9.39
#403C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#403C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403C8B
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403C8B#FFFFFF#000000##FFFFFF
##403C8B1.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08498E
Deuteranopia (green-blind)
#004489
Tritanopia (blue-blind)
#204E5D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #403c8b;
/* rgb */ color: rgb(64, 60, 139);
/* oklch */ color: oklch(40.6% 0.127 281.4);
Tailwind
colors: {
  custom: {
    50: '#7b72ad',
    500: '#403c8b',
    950: '#000000',
  },
}
SCSS
$custom: #403c8b;
$custom-light: #7b72ad;
$custom-dark: #000000;
JSON
{
  "hex": "#403c8b",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 139
  },
  "hsl": {
    "h": 243.038,
    "s": 39.698,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40553,
    "c": 0.12735,
    "h": 281.4
  },
  "luminance": 0.06186
}

Semantic roles & 50–950 ramp

primary
#403C8B
secondary
#ADB073
accent
#D058CA
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#0A0710
muted
#7C7A7F

Preview Lab

Preview with #403C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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