#403FBF#403FBF

#403FBF is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.5% C 0.194 H 275.8°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#403FBF
RGBrgb(64, 63, 191)
HSLhsl(240, 50%, 50%)
HSVhsv(240, 67%, 75%)
CMYKcmyk(66.5%, 67%, 0%, 25.1%)
CIE-LABlab(34.81, 40.51, -66.90)
CIE-LCHlch(34.81, 78.21, 301.20°)
OKLaboklab(45.49% 0.0195 -0.1931)
OKLCHoklch(45.49% 0.194 275.8)
XYZxyz(13.2927, 8.4054, 50.2020)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403FBF #BEBF3F
analogous
#3F7EBF #403FBF #803FBF
triadic
#403FBF #BF403F #3FBF40
tetradic
#403FBF #BF3F7E #BEBF3F #3FBF80
square
#403FBF #BF3F7E #BEBF3F #3FBF80
split-complementary
#403FBF #BF803F #7EBF3F
monochromatic
#212163 #313091 #403FBF #6D6DCF #9B9BDE

Accessibility & contrast

On white

7.83
#403FBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#403FBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403FBF
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403FBF#FFFFFF#000000##FFFFFF
##403FBF1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C3
Deuteranopia (green-blind)
#004CBD
Tritanopia (blue-blind)
#00617A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #403fbf;
/* rgb */ color: rgb(64, 63, 191);
/* oklch */ color: oklch(45.5% 0.194 275.8);
Tailwind
colors: {
  custom: {
    50: '#8575d3',
    500: '#403fbf',
    950: '#000000',
  },
}
SCSS
$custom: #403fbf;
$custom-light: #8575d3;
$custom-dark: #000000;
JSON
{
  "hex": "#403fbf",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 191
  },
  "hsl": {
    "h": 240.469,
    "s": 50.394,
    "l": 49.804
  },
  "oklch": {
    "l": 0.4549,
    "c": 0.19408,
    "h": 275.8
  },
  "luminance": 0.08407
}

Semantic roles & 50–950 ramp

primary
#403FBF
secondary
#C9CA90
accent
#DA4ED9
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #403FBF

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

Preview Lab → · Contrast checker → · Palette generator →

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