#403FB2#403FB2

#403FB2 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.3% C 0.177 H 276.7°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#403FB2
RGBrgb(64, 63, 178)
HSLhsl(241, 48%, 47%)
HSVhsv(241, 65%, 70%)
CMYKcmyk(64%, 64.6%, 0%, 30.2%)
CIE-LABlab(33.69, 36.15, -61.07)
CIE-LCHlch(33.69, 70.96, 300.62°)
OKLaboklab(44.32% 0.0208 -0.176)
OKLCHoklch(44.32% 0.177 276.7)
XYZxyz(11.9251, 7.8584, 42.9992)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403FB2 #B1B23F
analogous
#3F77B2 #403FB2 #7A3FB2
triadic
#403FB2 #B2403F #3FB240
tetradic
#403FB2 #B23F77 #B1B23F #3FB27A
square
#403FB2 #B23F77 #B1B23F #3FB27A
split-complementary
#403FB2 #B27A3F #77B23F
monochromatic
#1F1F58 #302F85 #403FB2 #6666C9 #9393D9

Accessibility & contrast

On white

8.17
#403FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#403FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403FB2
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403FB2#FFFFFF#000000##FFFFFF
##403FB21.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#004AB0
Tritanopia (blue-blind)
#005C73
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #403fb2;
/* rgb */ color: rgb(64, 63, 178);
/* oklch */ color: oklch(44.3% 0.177 276.7);
Tailwind
colors: {
  custom: {
    50: '#8274ca',
    500: '#403fb2',
    950: '#000000',
  },
}
SCSS
$custom: #403fb2;
$custom-light: #8274ca;
$custom-dark: #000000;
JSON
{
  "hex": "#403fb2",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 178
  },
  "hsl": {
    "h": 240.522,
    "s": 47.718,
    "l": 47.255
  },
  "oklch": {
    "l": 0.44323,
    "c": 0.17724,
    "h": 276.7
  },
  "luminance": 0.07859
}

Semantic roles & 50–950 ramp

primary
#403FB2
secondary
#C3C489
accent
#D750D6
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #403FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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