#403C8D#403C8D

#403C8D is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.7% C 0.130 H 281.1°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#403C8D
RGBrgb(64, 60, 141)
HSLhsl(243, 40%, 39%)
HSVhsv(243, 57%, 55%)
CMYKcmyk(54.6%, 57.4%, 0%, 44.7%)
CIE-LABlab(30.02, 25.55, -44.65)
CIE-LCHlch(30.02, 51.45, 299.78°)
OKLaboklab(40.71% 0.0251 -0.1278)
OKLCHoklch(40.71% 0.13 281.1)
XYZxyz(8.5364, 6.2443, 25.9496)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403C8D #898D3C
analogous
#3C618D #403C8D #693C8D
triadic
#403C8D #8D403C #3C8D40
tetradic
#403C8D #8D3C61 #898D3C #3C8D69
square
#403C8D #8D3C61 #898D3C #3C8D69
split-complementary
#403C8D #8D693C #618D3C
monochromatic
#191737 #2D2A62 #403C8D #5651B5 #807CC7

Accessibility & contrast

On white

9.34
#403C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#403C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403C8D
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403C8D#FFFFFF#000000##FFFFFF
##403C8D1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#034A90
Deuteranopia (green-blind)
#00448B
Tritanopia (blue-blind)
#1E4F5E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #403c8d;
/* rgb */ color: rgb(64, 60, 141);
/* oklch */ color: oklch(40.7% 0.130 281.1);
Tailwind
colors: {
  custom: {
    50: '#7c72af',
    500: '#403c8d',
    950: '#000000',
  },
}
SCSS
$custom: #403c8d;
$custom-light: #7c72af;
$custom-dark: #000000;
JSON
{
  "hex": "#403c8d",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 141
  },
  "hsl": {
    "h": 242.963,
    "s": 40.299,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40707,
    "c": 0.13024,
    "h": 281.1
  },
  "luminance": 0.06245
}

Semantic roles & 50–950 ramp

primary
#403C8D
secondary
#AEB174
accent
#D058CA
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#0A0810
muted
#7C7B7F

Preview Lab

Preview with #403C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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