#403F95#403F95

#403F95 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.9% C 0.137 H 279.2°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#403F95
RGBrgb(64, 63, 149)
HSLhsl(241, 41%, 42%)
HSVhsv(241, 58%, 58%)
CMYKcmyk(57%, 57.7%, 0%, 41.6%)
CIE-LABlab(31.38, 26.30, -47.36)
CIE-LCHlch(31.38, 54.17, 299.04°)
OKLaboklab(41.9% 0.0219 -0.1357)
OKLCHoklch(41.9% 0.137 279.2)
XYZxyz(9.3150, 6.8143, 29.2524)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403F95 #94953F
analogous
#3F6995 #403F95 #6B3F95
triadic
#403F95 #95403F #3F9540
tetradic
#403F95 #953F69 #94953F #3F956B
square
#403F95 #953F69 #94953F #3F956B
split-complementary
#403F95 #956B3F #69953F
monochromatic
#1B1B3F #2E2D6A #403F95 #5A59B9 #8484CB

Accessibility & contrast

On white

8.89
#403F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403F95
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403F95#FFFFFF#000000##FFFFFF
##403F951.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D98
Deuteranopia (green-blind)
#004693
Tritanopia (blue-blind)
#145363
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #403f95;
/* rgb */ color: rgb(64, 63, 149);
/* oklch */ color: oklch(41.9% 0.137 279.2);
Tailwind
colors: {
  custom: {
    50: '#7d74b5',
    500: '#403f95',
    950: '#000000',
  },
}
SCSS
$custom: #403f95;
$custom-light: #7d74b5;
$custom-dark: #000000;
JSON
{
  "hex": "#403f95",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 149
  },
  "hsl": {
    "h": 240.698,
    "s": 40.566,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41904,
    "c": 0.13749,
    "h": 279.2
  },
  "luminance": 0.06815
}

Semantic roles & 50–950 ramp

primary
#403F95
secondary
#B4B57B
accent
#D057CF
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #403F95

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

Preview Lab → · Contrast checker → · Palette generator →

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