#403C8F#403C8F

#403C8F is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.9% C 0.133 H 280.9°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#403C8F
RGBrgb(64, 60, 143)
HSLhsl(243, 41%, 40%)
HSVhsv(243, 58%, 56%)
CMYKcmyk(55.2%, 58%, 0%, 43.9%)
CIE-LABlab(30.17, 26.22, -45.65)
CIE-LCHlch(30.17, 52.64, 299.88°)
OKLaboklab(40.86% 0.0252 -0.1307)
OKLCHoklch(40.86% 0.133 280.9)
XYZxyz(8.6866, 6.3043, 26.7404)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403C8F #8B8F3C
analogous
#3C618F #403C8F #6A3C8F
triadic
#403C8F #8F403C #3C8F40
tetradic
#403C8F #8F3C61 #8B8F3C #3C8F6A
square
#403C8F #8F3C61 #8B8F3C #3C8F6A
split-complementary
#403C8F #8F6A3C #618F3C
monochromatic
#191839 #2D2A64 #403C8F #5752B6 #817DC8

Accessibility & contrast

On white

9.29
#403C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#403C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403C8F
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403C8F#FFFFFF#000000##FFFFFF
##403C8F1.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A92
Deuteranopia (green-blind)
#00448D
Tritanopia (blue-blind)
#1C4F5F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #403c8f;
/* rgb */ color: rgb(64, 60, 143);
/* oklch */ color: oklch(40.9% 0.133 280.9);
Tailwind
colors: {
  custom: {
    50: '#7c72b0',
    500: '#403c8f',
    950: '#000000',
  },
}
SCSS
$custom: #403c8f;
$custom-light: #7c72b0;
$custom-dark: #000000;
JSON
{
  "hex": "#403c8f",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 143
  },
  "hsl": {
    "h": 242.892,
    "s": 40.887,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40863,
    "c": 0.13311,
    "h": 280.9
  },
  "luminance": 0.06305
}

Semantic roles & 50–950 ramp

primary
#403C8F
secondary
#AFB275
accent
#D157CB
background
#F7F6FA
surface
#EEECF5
border
#C9C7CF
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #403C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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