#403D97#403D97

#403D97 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.7% C 0.143 H 279.7°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#403D97
RGBrgb(64, 61, 151)
HSLhsl(242, 42%, 42%)
HSVhsv(242, 60%, 59%)
CMYKcmyk(57.6%, 59.6%, 0%, 40.8%)
CIE-LABlab(31.02, 28.27, -49.16)
CIE-LCHlch(31.02, 56.71, 299.90°)
OKLaboklab(41.69% 0.0241 -0.141)
OKLCHoklch(41.69% 0.143 279.7)
XYZxyz(9.3673, 6.6612, 30.0643)
Luminance0.0666 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403D97 #94973D
analogous
#3D6797 #403D97 #6D3D97
triadic
#403D97 #97403D #3D9740
tetradic
#403D97 #973D67 #94973D #3D976D
square
#403D97 #973D67 #94973D #3D976D
split-complementary
#403D97 #976D3D #67973D
monochromatic
#1B1A40 #2E2B6B #403D97 #5A56BB #8482CC

Accessibility & contrast

On white

9.00
#403D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#403D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403D97
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403D97#FFFFFF#000000##FFFFFF
##403D971.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9A
Deuteranopia (green-blind)
#004695
Tritanopia (blue-blind)
#115264
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #403d97;
/* rgb */ color: rgb(64, 61, 151);
/* oklch */ color: oklch(41.7% 0.143 279.7);
Tailwind
colors: {
  custom: {
    50: '#7d72b6',
    500: '#403d97',
    950: '#000000',
  },
}
SCSS
$custom: #403d97;
$custom-light: #7d72b6;
$custom-dark: #000000;
JSON
{
  "hex": "#403d97",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 151
  },
  "hsl": {
    "h": 242,
    "s": 42.453,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41687,
    "c": 0.14308,
    "h": 279.7
  },
  "luminance": 0.06662
}

Semantic roles & 50–950 ramp

primary
#403D97
secondary
#B4B779
accent
#D256CE
background
#F8F6FB
surface
#EFECF6
border
#CAC7D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #403D97

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

Preview Lab → · Contrast checker → · Palette generator →

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