#403F9C#403F9C

#403F9C is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.5% C 0.147 H 278.6°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#403F9C
RGBrgb(64, 63, 156)
HSLhsl(241, 42%, 43%)
HSVhsv(241, 60%, 61%)
CMYKcmyk(59%, 59.6%, 0%, 38.8%)
CIE-LABlab(31.91, 28.68, -50.76)
CIE-LCHlch(31.91, 58.31, 299.46°)
OKLaboklab(42.46% 0.0219 -0.1457)
OKLCHoklch(42.46% 0.147 278.6)
XYZxyz(9.8907, 7.0446, 32.2846)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403F9C #9B9C3F
analogous
#3F6C9C #403F9C #6E3F9C
triadic
#403F9C #9C403F #3F9C40
tetradic
#403F9C #9C3F6C #9B9C3F #3F9C6E
square
#403F9C #9C3F6C #9B9C3F #3F9C6E
split-complementary
#403F9C #9C6E3F #6C9C3F
monochromatic
#1C1C45 #2E2D70 #403F9C #5C5BBD #8887CE

Accessibility & contrast

On white

8.72
#403F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#403F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403F9C
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403F9C#FFFFFF#000000##FFFFFF
##403F9C1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #403f9c;
/* rgb */ color: rgb(64, 63, 156);
/* oklch */ color: oklch(42.5% 0.147 278.6);
Tailwind
colors: {
  custom: {
    50: '#7e74ba',
    500: '#403f9c',
    950: '#000000',
  },
}
SCSS
$custom: #403f9c;
$custom-light: #7e74ba;
$custom-dark: #000000;
JSON
{
  "hex": "#403f9c",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 156
  },
  "hsl": {
    "h": 240.645,
    "s": 42.466,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42462,
    "c": 0.14738,
    "h": 278.6
  },
  "luminance": 0.07045
}

Semantic roles & 50–950 ramp

primary
#403F9C
secondary
#B8B97E
accent
#D256D1
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #403F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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