#403D98#403D98

#403D98 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.8% C 0.144 H 279.6°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#403D98
RGBrgb(64, 61, 152)
HSLhsl(242, 43%, 42%)
HSVhsv(242, 60%, 60%)
CMYKcmyk(57.9%, 59.9%, 0%, 40.4%)
CIE-LABlab(31.10, 28.61, -49.65)
CIE-LCHlch(31.10, 57.30, 299.95°)
OKLaboklab(41.77% 0.024 -0.1425)
OKLCHoklch(41.77% 0.144 279.6)
XYZxyz(9.4488, 6.6938, 30.4938)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403D98 #95983D
analogous
#3D6898 #403D98 #6E3D98
triadic
#403D98 #98403D #3D9840
tetradic
#403D98 #983D68 #95983D #3D986E
square
#403D98 #983D68 #95983D #3D986E
split-complementary
#403D98 #986E3D #68983D
monochromatic
#1B1A41 #2E2B6C #403D98 #5A57BB #8582CD

Accessibility & contrast

On white

8.98
#403D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#403D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403D98
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403D98#FFFFFF#000000##FFFFFF
##403D981.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9B
Deuteranopia (green-blind)
#004696
Tritanopia (blue-blind)
#0F5364
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #403d98;
/* rgb */ color: rgb(64, 61, 152);
/* oklch */ color: oklch(41.8% 0.144 279.6);
Tailwind
colors: {
  custom: {
    50: '#7d72b7',
    500: '#403d98',
    950: '#000000',
  },
}
SCSS
$custom: #403d98;
$custom-light: #7d72b7;
$custom-dark: #000000;
JSON
{
  "hex": "#403d98",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 152
  },
  "hsl": {
    "h": 241.978,
    "s": 42.723,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41767,
    "c": 0.14449,
    "h": 279.6
  },
  "luminance": 0.06694
}

Semantic roles & 50–950 ramp

primary
#403D98
secondary
#B5B77A
accent
#D355CE
background
#F8F6FB
surface
#EFECF6
border
#CAC7D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #403D98

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

Preview Lab → · Contrast checker → · Palette generator →

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