#403B8E#403B8E

#403B8E is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.6% C 0.133 H 281.4°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#403B8E
RGBrgb(64, 59, 142)
HSLhsl(244, 41%, 39%)
HSVhsv(244, 58%, 56%)
CMYKcmyk(54.9%, 58.5%, 0%, 44.3%)
CIE-LABlab(29.84, 26.54, -45.56)
CIE-LCHlch(29.84, 52.73, 300.22°)
OKLaboklab(40.6% 0.0263 -0.1305)
OKLCHoklch(40.6% 0.133 281.4)
XYZxyz(8.5593, 6.1704, 26.3259)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403B8E #898E3B
analogous
#3B608E #403B8E #6A3B8E
triadic
#403B8E #8E403B #3B8E40
tetradic
#403B8E #8E3B60 #898E3B #3B8E6A
square
#403B8E #8E3B60 #898E3B #3B8E6A
split-complementary
#403B8E #8E6A3B #608E3B
monochromatic
#191738 #2D2963 #403B8E #5650B6 #807BC8

Accessibility & contrast

On white

9.40
#403B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#403B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403B8E
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403B8E#FFFFFF#000000##FFFFFF
##403B8E1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#00438C
Tritanopia (blue-blind)
#1E4E5E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #403b8e;
/* rgb */ color: rgb(64, 59, 142);
/* oklch */ color: oklch(40.6% 0.133 281.4);
Tailwind
colors: {
  custom: {
    50: '#7c71b0',
    500: '#403b8e',
    950: '#000000',
  },
}
SCSS
$custom: #403b8e;
$custom-light: #7c71b0;
$custom-dark: #000000;
JSON
{
  "hex": "#403b8e",
  "rgb": {
    "r": 64,
    "g": 59,
    "b": 142
  },
  "hsl": {
    "h": 243.614,
    "s": 41.294,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40595,
    "c": 0.1331,
    "h": 281.4
  },
  "luminance": 0.06171
}

Semantic roles & 50–950 ramp

primary
#403B8E
secondary
#AEB273
accent
#D157CA
background
#F7F6FA
surface
#EEECF5
border
#C9C7CF
text
#0A0710
muted
#7C7A7F

Preview Lab

Preview with #403B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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