#403E9C#403E9C

#403E9C is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.3% C 0.149 H 278.9°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#403E9C
RGBrgb(64, 62, 156)
HSLhsl(241, 43%, 43%)
HSVhsv(241, 60%, 61%)
CMYKcmyk(59%, 60.3%, 0%, 38.8%)
CIE-LABlab(31.66, 29.32, -51.17)
CIE-LCHlch(31.66, 58.98, 299.81°)
OKLaboklab(42.28% 0.0229 -0.1469)
OKLCHoklch(42.28% 0.149 278.9)
XYZxyz(9.8358, 6.9349, 32.2663)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403E9C #9A9C3E
analogous
#3E6B9C #403E9C #6F3E9C
triadic
#403E9C #9C403E #3E9C40
tetradic
#403E9C #9C3E6B #9A9C3E #3E9C6F
square
#403E9C #9C3E6B #9A9C3E #3E9C6F
split-complementary
#403E9C #9C6F3E #6B9C3E
monochromatic
#1C1B44 #2E2D70 #403E9C #5C5ABD #8786CF

Accessibility & contrast

On white

8.80
#403E9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#403E9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403E9C
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403E9C#FFFFFF#000000##FFFFFF
##403E9C1.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9F
Deuteranopia (green-blind)
#00479A
Tritanopia (blue-blind)
#045567
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #403e9c;
/* rgb */ color: rgb(64, 62, 156);
/* oklch */ color: oklch(42.3% 0.149 278.9);
Tailwind
colors: {
  custom: {
    50: '#7e73ba',
    500: '#403e9c',
    950: '#000000',
  },
}
SCSS
$custom: #403e9c;
$custom-light: #7e73ba;
$custom-dark: #000000;
JSON
{
  "hex": "#403e9c",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 156
  },
  "hsl": {
    "h": 241.277,
    "s": 43.119,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42277,
    "c": 0.14873,
    "h": 278.9
  },
  "luminance": 0.06936
}

Semantic roles & 50–950 ramp

primary
#403E9C
secondary
#B8B97D
accent
#D355D0
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #403E9C

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

Preview Lab → · Contrast checker → · Palette generator →

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