#403BB8#403BB8

#403BB8 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 44.2% C 0.190 H 277.1°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#403BB8
RGBrgb(64, 59, 184)
HSLhsl(242, 51%, 48%)
HSVhsv(242, 68%, 72%)
CMYKcmyk(65.2%, 67.9%, 0%, 27.8%)
CIE-LABlab(33.30, 40.58, -65.25)
CIE-LCHlch(33.30, 76.84, 301.88°)
OKLaboklab(44.21% 0.0233 -0.1883)
OKLCHoklch(44.21% 0.19 277.1)
XYZxyz(12.3272, 7.6776, 46.1704)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403BB8 #B3B83B
analogous
#3B74B8 #403BB8 #7E3BB8
triadic
#403BB8 #B8403B #3BB840
tetradic
#403BB8 #B83B74 #B3B83B #3BB87E
square
#403BB8 #B83B74 #B3B83B #3BB87E
split-complementary
#403BB8 #B87E3B #74B83B
monochromatic
#201D5B #302C8A #403BB8 #6763CD #9492DC

Accessibility & contrast

On white

8.28
#403BB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#403BB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403BB8
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403BB8#FFFFFF#000000##FFFFFF
##403BB81.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #403bb8;
/* rgb */ color: rgb(64, 59, 184);
/* oklch */ color: oklch(44.2% 0.190 277.1);
Tailwind
colors: {
  custom: {
    50: '#8472ce',
    500: '#403bb8',
    950: '#000000',
  },
}
SCSS
$custom: #403bb8;
$custom-light: #8472ce;
$custom-dark: #000000;
JSON
{
  "hex": "#403bb8",
  "rgb": {
    "r": 64,
    "g": 59,
    "b": 184
  },
  "hsl": {
    "h": 242.4,
    "s": 51.44,
    "l": 47.647
  },
  "oklch": {
    "l": 0.44205,
    "c": 0.18972,
    "h": 277.1
  },
  "luminance": 0.07679
}

Semantic roles & 50–950 ramp

primary
#403BB8
secondary
#C4C788
accent
#DB4DD5
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #403BB8

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

Preview Lab → · Contrast checker → · Palette generator →

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