#403FB6#403FB6

#403FB6 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.7% C 0.182 H 276.4°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#403FB6
RGBrgb(64, 63, 182)
HSLhsl(241, 49%, 48%)
HSVhsv(241, 65%, 71%)
CMYKcmyk(64.8%, 65.4%, 0%, 28.6%)
CIE-LABlab(34.03, 37.49, -62.88)
CIE-LCHlch(34.03, 73.21, 300.81°)
OKLaboklab(44.68% 0.0205 -0.1813)
OKLCHoklch(44.68% 0.182 276.4)
XYZxyz(12.3326, 8.0214, 45.1453)
Luminance0.0802 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403FB6 #B5B63F
analogous
#3F79B6 #403FB6 #7B3FB6
triadic
#403FB6 #B6403F #3FB640
tetradic
#403FB6 #B63F79 #B5B63F #3FB67B
square
#403FB6 #B63F79 #B5B63F #3FB67B
split-complementary
#403FB6 #B67B3F #79B63F
monochromatic
#20205B #302F89 #403FB6 #6868CB #9695DA

Accessibility & contrast

On white

8.06
#403FB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#403FB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403FB6
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403FB6#FFFFFF#000000##FFFFFF
##403FB61.008.062.608.06
#FFFFFF8.061.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BA
Deuteranopia (green-blind)
#004BB4
Tritanopia (blue-blind)
#005E75
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #403fb6;
/* rgb */ color: rgb(64, 63, 182);
/* oklch */ color: oklch(44.7% 0.182 276.4);
Tailwind
colors: {
  custom: {
    50: '#8374cd',
    500: '#403fb6',
    950: '#000000',
  },
}
SCSS
$custom: #403fb6;
$custom-light: #8374cd;
$custom-dark: #000000;
JSON
{
  "hex": "#403fb6",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 182
  },
  "hsl": {
    "h": 240.504,
    "s": 48.571,
    "l": 48.039
  },
  "oklch": {
    "l": 0.44677,
    "c": 0.18248,
    "h": 276.4
  },
  "luminance": 0.08022
}

Semantic roles & 50–950 ramp

primary
#403FB6
secondary
#C5C68B
accent
#D850D7
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #403FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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