#403C98#403C98

#403C98 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.6% C 0.146 H 279.9°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#403C98
RGBrgb(64, 60, 152)
HSLhsl(243, 43%, 42%)
HSVhsv(243, 61%, 60%)
CMYKcmyk(57.9%, 60.5%, 0%, 40.4%)
CIE-LABlab(30.85, 29.25, -50.05)
CIE-LCHlch(30.85, 57.97, 300.30°)
OKLaboklab(41.58% 0.0251 -0.1437)
OKLCHoklch(41.58% 0.146 279.9)
XYZxyz(9.3959, 6.5881, 30.4762)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403C98 #94983C
analogous
#3C6698 #403C98 #6E3C98
triadic
#403C98 #98403C #3C9840
tetradic
#403C98 #983C66 #94983C #3C986E
square
#403C98 #983C66 #94983C #3C986E
split-complementary
#403C98 #986E3C #66983C
monochromatic
#1B1940 #2E2B6C #403C98 #5A55BC #8481CD

Accessibility & contrast

On white

9.06
#403C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#403C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403C98
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403C98#FFFFFF#000000##FFFFFF
##403C981.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9B
Deuteranopia (green-blind)
#004596
Tritanopia (blue-blind)
#0F5264
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #403c98;
/* rgb */ color: rgb(64, 60, 152);
/* oklch */ color: oklch(41.6% 0.146 279.9);
Tailwind
colors: {
  custom: {
    50: '#7d72b7',
    500: '#403c98',
    950: '#000000',
  },
}
SCSS
$custom: #403c98;
$custom-light: #7d72b7;
$custom-dark: #000000;
JSON
{
  "hex": "#403c98",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 152
  },
  "hsl": {
    "h": 242.609,
    "s": 43.396,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41583,
    "c": 0.14584,
    "h": 279.9
  },
  "luminance": 0.06589
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #403C98

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

Preview Lab → · Contrast checker → · Palette generator →

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