#403BBB#403BBB

#403BBB is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.5% C 0.194 H 276.8°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#403BBB
RGBrgb(64, 59, 187)
HSLhsl(242, 52%, 48%)
HSVhsv(242, 68%, 73%)
CMYKcmyk(65.8%, 68.4%, 0%, 26.7%)
CIE-LABlab(33.57, 41.57, -66.58)
CIE-LCHlch(33.57, 78.49, 301.98°)
OKLaboklab(44.48% 0.0229 -0.1922)
OKLCHoklch(44.48% 0.194 276.8)
XYZxyz(12.6450, 7.8047, 47.8442)
Luminance0.0781 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403BBB #B6BB3B
analogous
#3B76BB #403BBB #803BBB
triadic
#403BBB #BB403B #3BBB40
tetradic
#403BBB #BB3B76 #B6BB3B #3BBB80
square
#403BBB #BB3B76 #B6BB3B #3BBB80
split-complementary
#403BBB #BB803B #76BB3B
monochromatic
#201E5E #302C8C #403BBB #6965CE #9693DD

Accessibility & contrast

On white

8.20
#403BBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#403BBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403BBB
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403BBB#FFFFFF#000000##FFFFFF
##403BBB1.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BF
Deuteranopia (green-blind)
#0049B9
Tritanopia (blue-blind)
#005D76
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #403bbb;
/* rgb */ color: rgb(64, 59, 187);
/* oklch */ color: oklch(44.5% 0.194 276.8);
Tailwind
colors: {
  custom: {
    50: '#8472d1',
    500: '#403bbb',
    950: '#000000',
  },
}
SCSS
$custom: #403bbb;
$custom-light: #8472d1;
$custom-dark: #000000;
JSON
{
  "hex": "#403bbb",
  "rgb": {
    "r": 64,
    "g": 59,
    "b": 187
  },
  "hsl": {
    "h": 242.344,
    "s": 52.033,
    "l": 48.235
  },
  "oklch": {
    "l": 0.44483,
    "c": 0.19353,
    "h": 276.8
  },
  "luminance": 0.07806
}

Semantic roles & 50–950 ramp

primary
#403BBB
secondary
#C6C88A
accent
#DB4CD6
background
#F8F6FD
surface
#F0ECFA
border
#CBC7D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #403BBB

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

Preview Lab → · Contrast checker → · Palette generator →

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