#403C8A#403C8A

#403C8A is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.5% C 0.126 H 281.5°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#403C8A
RGBrgb(64, 60, 138)
HSLhsl(243, 39%, 39%)
HSVhsv(243, 57%, 54%)
CMYKcmyk(53.6%, 56.5%, 0%, 45.9%)
CIE-LABlab(29.80, 24.54, -43.15)
CIE-LCHlch(29.80, 49.65, 299.63°)
OKLaboklab(40.48% 0.0251 -0.1234)
OKLCHoklch(40.48% 0.126 281.5)
XYZxyz(8.3162, 6.1562, 24.7899)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403C8A #868A3C
analogous
#3C5F8A #403C8A #673C8A
triadic
#403C8A #8A403C #3C8A40
tetradic
#403C8A #8A3C5F #868A3C #3C8A67
square
#403C8A #8A3C5F #868A3C #3C8A67
split-complementary
#403C8A #8A673C #5F8A3C
monochromatic
#181735 #2C295F #403C8A #5550B3 #7F7BC6

Accessibility & contrast

On white

9.41
#403C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#403C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403C8A
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403C8A#FFFFFF#000000##FFFFFF
##403C8A1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B498D
Deuteranopia (green-blind)
#004388
Tritanopia (blue-blind)
#214E5D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #403c8a;
/* rgb */ color: rgb(64, 60, 138);
/* oklch */ color: oklch(40.5% 0.126 281.5);
Tailwind
colors: {
  custom: {
    50: '#7b72ad',
    500: '#403c8a',
    950: '#000000',
  },
}
SCSS
$custom: #403c8a;
$custom-light: #7b72ad;
$custom-dark: #000000;
JSON
{
  "hex": "#403c8a",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 138
  },
  "hsl": {
    "h": 243.077,
    "s": 39.394,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40476,
    "c": 0.1259,
    "h": 281.5
  },
  "luminance": 0.06157
}

Semantic roles & 50–950 ramp

primary
#403C8A
secondary
#ACAF73
accent
#CF59C9
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#0A0710
muted
#7C7A7F

Preview Lab

Preview with #403C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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