#403F94#403F94

#403F94 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.8% C 0.136 H 279.3°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#403F94
RGBrgb(64, 63, 148)
HSLhsl(241, 40%, 41%)
HSVhsv(241, 57%, 58%)
CMYKcmyk(56.8%, 57.4%, 0%, 42%)
CIE-LABlab(31.31, 25.96, -46.87)
CIE-LCHlch(31.31, 53.58, 298.98°)
OKLaboklab(41.83% 0.0219 -0.1343)
OKLCHoklch(41.83% 0.136 279.3)
XYZxyz(9.2355, 6.7825, 28.8337)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403F94 #93943F
analogous
#3F6994 #403F94 #6B3F94
triadic
#403F94 #94403F #3F9440
tetradic
#403F94 #943F69 #93943F #3F946B
square
#403F94 #943F69 #93943F #3F946B
split-complementary
#403F94 #946B3F #69943F
monochromatic
#1B1A3E #2D2D69 #403F94 #5958B8 #8483CA

Accessibility & contrast

On white

8.91
#403F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#403F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403F94
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403F94#FFFFFF#000000##FFFFFF
##403F941.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D97
Deuteranopia (green-blind)
#004692
Tritanopia (blue-blind)
#155363
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #403f94;
/* rgb */ color: rgb(64, 63, 148);
/* oklch */ color: oklch(41.8% 0.136 279.3);
Tailwind
colors: {
  custom: {
    50: '#7d74b4',
    500: '#403f94',
    950: '#000000',
  },
}
SCSS
$custom: #403f94;
$custom-light: #7d74b4;
$custom-dark: #000000;
JSON
{
  "hex": "#403f94",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 148
  },
  "hsl": {
    "h": 240.706,
    "s": 40.284,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41826,
    "c": 0.13607,
    "h": 279.3
  },
  "luminance": 0.06783
}

Semantic roles & 50–950 ramp

primary
#403F94
secondary
#B4B57A
accent
#D058CF
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #403F94

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

Preview Lab → · Contrast checker → · Palette generator →

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