#403FFF#403FFF

#403FFF is a mid, highly saturated blue. Relative luminance 0.119; OKLCH L 51.8% C 0.270 H 272.0°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#403FFF
RGBrgb(64, 63, 255)
HSLhsl(240, 100%, 62%)
HSVhsv(240, 75%, 100%)
CMYKcmyk(74.9%, 75.3%, 0%, 0%)
CIE-LABlab(41.00, 61.02, -93.32)
CIE-LCHlch(41.00, 111.50, 303.18°)
OKLaboklab(51.75% 0.0094 -0.2701)
OKLCHoklch(51.75% 0.27 272)
XYZxyz(21.9358, 11.8626, 95.7220)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403FFF #FEFF3F
analogous
#3F9EFF #403FFF #A03FFF
triadic
#403FFF #FF403F #3FFF40
tetradic
#403FFF #FF3F9E #FEFF3F #3FFFA0
square
#403FFF #FF3F9E #FEFF3F #3FFFA0
split-complementary
#403FFF #FFA03F #9EFF3F
monochromatic
#0100C4 #0302FF #403FFF #7D7CFF #BAB9FF

Accessibility & contrast

On white

6.23
#403FFF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#403FFF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #403FFF
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403FFF#FFFFFF#000000##FFFFFF
##403FFF1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AFF
Deuteranopia (green-blind)
#0057FC
Tritanopia (blue-blind)
#00799D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #403fff;
/* rgb */ color: rgb(64, 63, 255);
/* oklch */ color: oklch(51.8% 0.270 272.0);
Tailwind
colors: {
  custom: {
    50: '#9277ff',
    500: '#403fff',
    950: '#000000',
  },
}
SCSS
$custom: #403fff;
$custom-light: #9277ff;
$custom-dark: #000000;
JSON
{
  "hex": "#403fff",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 255
  },
  "hsl": {
    "h": 240.312,
    "s": 100,
    "l": 62.353
  },
  "oklch": {
    "l": 0.51754,
    "c": 0.2703,
    "h": 272
  },
  "luminance": 0.11865
}

Semantic roles & 50–950 ramp

primary
#403FFF
secondary
#F0F0AA
accent
#E600E4
background
#FAF7FF
surface
#F4EDFF
border
#CEC8D7
text
#0F0918
muted
#7F7B86

Preview Lab

Preview with #403FFF

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

Preview Lab → · Contrast checker → · Palette generator →

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