#403C9D#403C9D

#403C9D is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.0% C 0.153 H 279.4°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#403C9D
RGBrgb(64, 60, 157)
HSLhsl(242, 45%, 43%)
HSVhsv(242, 62%, 62%)
CMYKcmyk(59.2%, 61.8%, 0%, 38.4%)
CIE-LABlab(31.24, 30.94, -52.45)
CIE-LCHlch(31.24, 60.89, 300.53°)
OKLaboklab(42% 0.0249 -0.1507)
OKLCHoklch(42% 0.153 279.4)
XYZxyz(9.8141, 6.7553, 32.6785)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403C9D #999D3C
analogous
#3C699D #403C9D #703C9D
triadic
#403C9D #9D403C #3C9D40
tetradic
#403C9D #9D3C69 #999D3C #3C9D70
square
#403C9D #9D3C69 #999D3C #3C9D70
split-complementary
#403C9D #9D703C #699D3C
monochromatic
#1C1A44 #2E2B71 #403C9D #5C57BF #8784D0

Accessibility & contrast

On white

8.93
#403C9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#403C9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403C9D
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403C9D#FFFFFF#000000##FFFFFF
##403C9D1.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA0
Deuteranopia (green-blind)
#00469B
Tritanopia (blue-blind)
#025466
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #403c9d;
/* rgb */ color: rgb(64, 60, 157);
/* oklch */ color: oklch(42.0% 0.153 279.4);
Tailwind
colors: {
  custom: {
    50: '#7e72bb',
    500: '#403c9d',
    950: '#000000',
  },
}
SCSS
$custom: #403c9d;
$custom-light: #7e72bb;
$custom-dark: #000000;
JSON
{
  "hex": "#403c9d",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 157
  },
  "hsl": {
    "h": 242.474,
    "s": 44.7,
    "l": 42.549
  },
  "oklch": {
    "l": 0.41996,
    "c": 0.15276,
    "h": 279.4
  },
  "luminance": 0.06756
}

Semantic roles & 50–950 ramp

primary
#403C9D
secondary
#B7BA7B
accent
#D453CF
background
#F8F6FB
surface
#EFECF6
border
#CAC7D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #403C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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