#403F98#403F98

#403F98 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.1% C 0.142 H 278.9°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#403F98
RGBrgb(64, 63, 152)
HSLhsl(241, 41%, 42%)
HSVhsv(241, 59%, 60%)
CMYKcmyk(57.9%, 58.6%, 0%, 40.4%)
CIE-LABlab(31.60, 27.32, -48.83)
CIE-LCHlch(31.60, 55.95, 299.23°)
OKLaboklab(42.14% 0.022 -0.14)
OKLCHoklch(42.14% 0.142 278.9)
XYZxyz(9.5576, 6.9114, 30.5301)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403F98 #97983F
analogous
#3F6B98 #403F98 #6D3F98
triadic
#403F98 #98403F #3F9840
tetradic
#403F98 #983F6B #97983F #3F986D
square
#403F98 #983F6B #97983F #3F986D
split-complementary
#403F98 #986D3F #6B983F
monochromatic
#1C1B41 #2E2D6D #403F98 #5B5ABA #8685CC

Accessibility & contrast

On white

8.81
#403F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#403F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403F98
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403F98#FFFFFF#000000##FFFFFF
##403F981.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9B
Deuteranopia (green-blind)
#004796
Tritanopia (blue-blind)
#0E5465
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #403f98;
/* rgb */ color: rgb(64, 63, 152);
/* oklch */ color: oklch(42.1% 0.142 278.9);
Tailwind
colors: {
  custom: {
    50: '#7d74b7',
    500: '#403f98',
    950: '#000000',
  },
}
SCSS
$custom: #403f98;
$custom-light: #7d74b7;
$custom-dark: #000000;
JSON
{
  "hex": "#403f98",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 152
  },
  "hsl": {
    "h": 240.674,
    "s": 41.395,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42141,
    "c": 0.14176,
    "h": 278.9
  },
  "luminance": 0.06912
}

Semantic roles & 50–950 ramp

primary
#403F98
secondary
#B6B77C
accent
#D157D0
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #403F98

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

Preview Lab → · Contrast checker → · Palette generator →

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