#403AB6#403AB6

#403AB6 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.9% C 0.188 H 277.4°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#403AB6
RGBrgb(64, 58, 182)
HSLhsl(243, 52%, 47%)
HSVhsv(243, 68%, 71%)
CMYKcmyk(64.8%, 68.1%, 0%, 28.6%)
CIE-LABlab(32.90, 40.52, -64.72)
CIE-LCHlch(32.90, 76.36, 302.05°)
OKLaboklab(43.86% 0.0243 -0.1867)
OKLCHoklch(43.86% 0.188 277.4)
XYZxyz(12.0682, 7.4925, 45.0571)
Luminance0.0749 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403AB6 #B0B63A
analogous
#3A72B6 #403AB6 #7E3AB6
triadic
#403AB6 #B6403A #3AB640
tetradic
#403AB6 #B63A72 #B0B63A #3AB67E
square
#403AB6 #B63A72 #B0B63A #3AB67E
split-complementary
#403AB6 #B67E3A #72B63A
monochromatic
#1F1C59 #302B88 #403AB6 #6661CD #938FDB

Accessibility & contrast

On white

8.40
#403AB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#403AB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403AB6
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403AB6#FFFFFF#000000##FFFFFF
##403AB61.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BA
Deuteranopia (green-blind)
#0048B4
Tritanopia (blue-blind)
#005B73
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #403ab6;
/* rgb */ color: rgb(64, 58, 182);
/* oklch */ color: oklch(43.9% 0.188 277.4);
Tailwind
colors: {
  custom: {
    50: '#8371cd',
    500: '#403ab6',
    950: '#000000',
  },
}
SCSS
$custom: #403ab6;
$custom-light: #8371cd;
$custom-dark: #000000;
JSON
{
  "hex": "#403ab6",
  "rgb": {
    "r": 64,
    "g": 58,
    "b": 182
  },
  "hsl": {
    "h": 242.903,
    "s": 51.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.43862,
    "c": 0.18831,
    "h": 277.4
  },
  "luminance": 0.07493
}

Semantic roles & 50–950 ramp

primary
#403AB6
secondary
#C3C686
accent
#DB4DD4
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #403AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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