#403EBC#403EBC

#403EBC is a mid, vivid blue. Relative luminance 0.082; OKLCH L 45.1% C 0.191 H 276.2°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#403EBC
RGBrgb(64, 62, 188)
HSLhsl(241, 50%, 49%)
HSVhsv(241, 67%, 74%)
CMYKcmyk(66%, 67%, 0%, 26.3%)
CIE-LABlab(34.32, 40.11, -65.94)
CIE-LCHlch(34.32, 77.18, 301.31°)
OKLaboklab(45.05% 0.0206 -0.1903)
OKLCHoklch(45.05% 0.191 276.2)
XYZxyz(12.9111, 8.1650, 48.4628)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403EBC #BABC3E
analogous
#3E7BBC #403EBC #7F3EBC
triadic
#403EBC #BC403E #3EBC40
tetradic
#403EBC #BC3E7B #BABC3E #3EBC7F
square
#403EBC #BC3E7B #BABC3E #3EBC7F
split-complementary
#403EBC #BC7F3E #7BBC3E
monochromatic
#212060 #302F8E #403EBC #6B6ACE #9998DD

Accessibility & contrast

On white

7.98
#403EBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#403EBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403EBC
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403EBC#FFFFFF#000000##FFFFFF
##403EBC1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C0
Deuteranopia (green-blind)
#004BBA
Tritanopia (blue-blind)
#005F78
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #403ebc;
/* rgb */ color: rgb(64, 62, 188);
/* oklch */ color: oklch(45.1% 0.191 276.2);
Tailwind
colors: {
  custom: {
    50: '#8474d1',
    500: '#403ebc',
    950: '#000000',
  },
}
SCSS
$custom: #403ebc;
$custom-light: #8474d1;
$custom-dark: #000000;
JSON
{
  "hex": "#403ebc",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 188
  },
  "hsl": {
    "h": 240.952,
    "s": 50.4,
    "l": 49.02
  },
  "oklch": {
    "l": 0.45054,
    "c": 0.1914,
    "h": 276.2
  },
  "luminance": 0.08166
}

Semantic roles & 50–950 ramp

primary
#403EBC
secondary
#C8C98D
accent
#DA4ED8
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #403EBC

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

Preview Lab → · Contrast checker → · Palette generator →

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