#403E98#403E98

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

Color values

HEX#403E98
RGBrgb(64, 62, 152)
HSLhsl(241, 42%, 42%)
HSVhsv(241, 59%, 60%)
CMYKcmyk(57.9%, 59.2%, 0%, 40.4%)
CIE-LABlab(31.35, 27.96, -49.24)
CIE-LCHlch(31.35, 56.63, 299.59°)
OKLaboklab(41.95% 0.023 -0.1413)
OKLCHoklch(41.95% 0.143 279.3)
XYZxyz(9.5027, 6.8016, 30.5118)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403E98 #96983E
analogous
#3E6998 #403E98 #6D3E98
triadic
#403E98 #98403E #3E9840
tetradic
#403E98 #983E69 #96983E #3E986D
square
#403E98 #983E69 #96983E #3E986D
split-complementary
#403E98 #986D3E #69983E
monochromatic
#1B1B41 #2E2C6D #403E98 #5A58BB #8584CD

Accessibility & contrast

On white

8.90
#403E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403E98
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403E98#FFFFFF#000000##FFFFFF
##403E981.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9B
Deuteranopia (green-blind)
#004696
Tritanopia (blue-blind)
#0E5365
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #403e98;
/* rgb */ color: rgb(64, 62, 152);
/* oklch */ color: oklch(42.0% 0.143 279.3);
Tailwind
colors: {
  custom: {
    50: '#7d73b7',
    500: '#403e98',
    950: '#000000',
  },
}
SCSS
$custom: #403e98;
$custom-light: #7d73b7;
$custom-dark: #000000;
JSON
{
  "hex": "#403e98",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 152
  },
  "hsl": {
    "h": 241.333,
    "s": 42.056,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41953,
    "c": 0.14312,
    "h": 279.3
  },
  "luminance": 0.06802
}

Semantic roles & 50–950 ramp

primary
#403E98
secondary
#B6B77B
accent
#D256CF
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #403E98

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

Preview Lab → · Contrast checker → · Palette generator →

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