#403AB8#403AB8

#403AB8 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 44.0% C 0.191 H 277.2°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#403AB8
RGBrgb(64, 58, 184)
HSLhsl(243, 52%, 47%)
HSVhsv(243, 68%, 72%)
CMYKcmyk(65.2%, 68.5%, 0%, 27.8%)
CIE-LABlab(33.08, 41.18, -65.61)
CIE-LCHlch(33.08, 77.46, 302.11°)
OKLaboklab(44.05% 0.024 -0.1893)
OKLCHoklch(44.05% 0.191 277.2)
XYZxyz(12.2763, 7.5758, 46.1534)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403AB8 #B2B83A
analogous
#3A73B8 #403AB8 #7F3AB8
triadic
#403AB8 #B8403A #3AB840
tetradic
#403AB8 #B83A73 #B2B83A #3AB87F
square
#403AB8 #B83A73 #B2B83A #3AB87F
split-complementary
#403AB8 #B87F3A #73B83A
monochromatic
#201D5B #302B89 #403AB8 #6762CD #9490DC

Accessibility & contrast

On white

8.35
#403AB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#403AB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403AB8
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403AB8#FFFFFF#000000##FFFFFF
##403AB81.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BC
Deuteranopia (green-blind)
#0048B6
Tritanopia (blue-blind)
#005C74
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #403ab8;
/* rgb */ color: rgb(64, 58, 184);
/* oklch */ color: oklch(44.0% 0.191 277.2);
Tailwind
colors: {
  custom: {
    50: '#8471ce',
    500: '#403ab8',
    950: '#000000',
  },
}
SCSS
$custom: #403ab8;
$custom-light: #8471ce;
$custom-dark: #000000;
JSON
{
  "hex": "#403ab8",
  "rgb": {
    "r": 64,
    "g": 58,
    "b": 184
  },
  "hsl": {
    "h": 242.857,
    "s": 52.066,
    "l": 47.451
  },
  "oklch": {
    "l": 0.44048,
    "c": 0.19086,
    "h": 277.2
  },
  "luminance": 0.07577
}

Semantic roles & 50–950 ramp

primary
#403AB8
secondary
#C4C787
accent
#DC4CD5
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #403AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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