#403B8F#403B8F

#403B8F is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.7% C 0.135 H 281.3°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#403B8F
RGBrgb(64, 59, 143)
HSLhsl(244, 42%, 40%)
HSVhsv(244, 59%, 56%)
CMYKcmyk(55.2%, 58.7%, 0%, 43.9%)
CIE-LABlab(29.91, 26.87, -46.06)
CIE-LCHlch(29.91, 53.32, 300.26°)
OKLaboklab(40.67% 0.0263 -0.1319)
OKLCHoklch(40.67% 0.135 281.3)
XYZxyz(8.6347, 6.2006, 26.7231)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403B8F #8A8F3B
analogous
#3B608F #403B8F #6A3B8F
triadic
#403B8F #8F403B #3B8F40
tetradic
#403B8F #8F3B60 #8A8F3B #3B8F6A
square
#403B8F #8F3B60 #8A8F3B #3B8F6A
split-complementary
#403B8F #8F6A3B #608F3B
monochromatic
#191738 #2D2964 #403B8F #5650B7 #807CC9

Accessibility & contrast

On white

9.37
#403B8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#403B8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403B8F
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403B8F#FFFFFF#000000##FFFFFF
##403B8F1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004992
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#1C4F5F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #403b8f;
/* rgb */ color: rgb(64, 59, 143);
/* oklch */ color: oklch(40.7% 0.135 281.3);
Tailwind
colors: {
  custom: {
    50: '#7c71b0',
    500: '#403b8f',
    950: '#000000',
  },
}
SCSS
$custom: #403b8f;
$custom-light: #7c71b0;
$custom-dark: #000000;
JSON
{
  "hex": "#403b8f",
  "rgb": {
    "r": 64,
    "g": 59,
    "b": 143
  },
  "hsl": {
    "h": 243.571,
    "s": 41.584,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40674,
    "c": 0.13452,
    "h": 281.3
  },
  "luminance": 0.06201
}

Semantic roles & 50–950 ramp

primary
#403B8F
secondary
#AFB273
accent
#D156CA
background
#F7F6FA
surface
#EEECF5
border
#C9C7CF
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #403B8F

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

Preview Lab → · Contrast checker → · Palette generator →

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