#403D94#403D94

#403D94 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.4% C 0.139 H 280.0°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#403D94
RGBrgb(64, 61, 148)
HSLhsl(242, 42%, 41%)
HSVhsv(242, 59%, 58%)
CMYKcmyk(56.8%, 58.8%, 0%, 42%)
CIE-LABlab(30.80, 27.26, -47.70)
CIE-LCHlch(30.80, 54.94, 299.75°)
OKLaboklab(41.45% 0.0241 -0.1367)
OKLCHoklch(41.45% 0.139 280)
XYZxyz(9.1267, 6.5650, 28.7975)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403D94 #91943D
analogous
#3D6594 #403D94 #6B3D94
triadic
#403D94 #94403D #3D9440
tetradic
#403D94 #943D65 #91943D #3D946B
square
#403D94 #943D65 #91943D #3D946B
split-complementary
#403D94 #946B3D #65943D
monochromatic
#1B193D #2D2B69 #403D94 #5955B9 #8381CB

Accessibility & contrast

On white

9.08
#403D94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#403D94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403D94
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403D94#FFFFFF#000000##FFFFFF
##403D941.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C97
Deuteranopia (green-blind)
#004592
Tritanopia (blue-blind)
#165162
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #403d94;
/* rgb */ color: rgb(64, 61, 148);
/* oklch */ color: oklch(41.4% 0.139 280.0);
Tailwind
colors: {
  custom: {
    50: '#7d72b4',
    500: '#403d94',
    950: '#000000',
  },
}
SCSS
$custom: #403d94;
$custom-light: #7d72b4;
$custom-dark: #000000;
JSON
{
  "hex": "#403d94",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 148
  },
  "hsl": {
    "h": 242.069,
    "s": 41.627,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41446,
    "c": 0.13885,
    "h": 280
  },
  "luminance": 0.06566
}

Semantic roles & 50–950 ramp

primary
#403D94
secondary
#B3B578
accent
#D156CD
background
#F8F6FB
surface
#EFECF6
border
#CAC7D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #403D94

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

Preview Lab → · Contrast checker → · Palette generator →

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