#403CA4#403CA4

#403CA4 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.6% C 0.162 H 278.7°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#403CA4
RGBrgb(64, 60, 164)
HSLhsl(242, 46%, 44%)
HSVhsv(242, 63%, 64%)
CMYKcmyk(61%, 63.4%, 0%, 35.7%)
CIE-LABlab(31.81, 33.29, -55.76)
CIE-LCHlch(31.81, 64.94, 300.84°)
OKLaboklab(42.59% 0.0245 -0.1604)
OKLCHoklch(42.59% 0.162 278.7)
XYZxyz(10.4289, 7.0013, 35.9166)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403CA4 #A0A43C
analogous
#3C6CA4 #403CA4 #743CA4
triadic
#403CA4 #A4403C #3CA440
tetradic
#403CA4 #A43C6C #A0A43C #3CA474
square
#403CA4 #A43C6C #A0A43C #3CA474
split-complementary
#403CA4 #A4743C #6CA43C
monochromatic
#1D1B4A #2F2C77 #403CA4 #5E5AC3 #8A87D3

Accessibility & contrast

On white

8.75
#403CA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#403CA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403CA4
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403CA4#FFFFFF#000000##FFFFFF
##403CA41.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA7
Deuteranopia (green-blind)
#0047A2
Tritanopia (blue-blind)
#00566A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #403ca4;
/* rgb */ color: rgb(64, 60, 164);
/* oklch */ color: oklch(42.6% 0.162 278.7);
Tailwind
colors: {
  custom: {
    50: '#8072c0',
    500: '#403ca4',
    950: '#000000',
  },
}
SCSS
$custom: #403ca4;
$custom-light: #8072c0;
$custom-dark: #000000;
JSON
{
  "hex": "#403ca4",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 164
  },
  "hsl": {
    "h": 242.308,
    "s": 46.429,
    "l": 43.922
  },
  "oklch": {
    "l": 0.42589,
    "c": 0.1623,
    "h": 278.7
  },
  "luminance": 0.07002
}

Semantic roles & 50–950 ramp

primary
#403CA4
secondary
#BBBD7E
accent
#D652D1
background
#F8F6FB
surface
#EFECF7
border
#CAC7D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #403CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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