#403C99#403C99

#403C99 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.7% C 0.147 H 279.8°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#403C99
RGBrgb(64, 60, 153)
HSLhsl(243, 44%, 42%)
HSVhsv(243, 61%, 60%)
CMYKcmyk(58.2%, 60.8%, 0%, 40%)
CIE-LABlab(30.93, 29.59, -50.53)
CIE-LCHlch(30.93, 58.56, 300.35°)
OKLaboklab(41.67% 0.0251 -0.1451)
OKLCHoklch(41.67% 0.147 279.8)
XYZxyz(9.4782, 6.6210, 30.9093)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403C99 #95993C
analogous
#3C6799 #403C99 #6F3C99
triadic
#403C99 #99403C #3C9940
tetradic
#403C99 #993C67 #95993C #3C996F
square
#403C99 #993C67 #95993C #3C996F
split-complementary
#403C99 #996F3C #67993C
monochromatic
#1B1A41 #2E2B6D #403C99 #5A56BD #8582CE

Accessibility & contrast

On white

9.03
#403C99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#403C99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403C99
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403C99#FFFFFF#000000##FFFFFF
##403C991.009.032.329.03
#FFFFFF9.031.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9C
Deuteranopia (green-blind)
#004597
Tritanopia (blue-blind)
#0D5264
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #403c99;
/* rgb */ color: rgb(64, 60, 153);
/* oklch */ color: oklch(41.7% 0.147 279.8);
Tailwind
colors: {
  custom: {
    50: '#7e72b8',
    500: '#403c99',
    950: '#000000',
  },
}
SCSS
$custom: #403c99;
$custom-light: #7e72b8;
$custom-dark: #000000;
JSON
{
  "hex": "#403c99",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 153
  },
  "hsl": {
    "h": 242.581,
    "s": 43.662,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41665,
    "c": 0.14723,
    "h": 279.8
  },
  "luminance": 0.06622
}

Semantic roles & 50–950 ramp

primary
#403C99
secondary
#B5B879
accent
#D354CE
background
#F8F6FB
surface
#EFECF6
border
#CAC7D0
text
#0B0811
muted
#7C7B80

Preview Lab

Preview with #403C99

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

Preview Lab → · Contrast checker → · Palette generator →

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