#403BA6#403BA6

#403BA6 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.6% C 0.166 H 278.7°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#403BA6
RGBrgb(64, 59, 166)
HSLhsl(243, 48%, 44%)
HSVhsv(243, 64%, 65%)
CMYKcmyk(61.4%, 64.5%, 0%, 34.9%)
CIE-LABlab(31.74, 34.59, -57.08)
CIE-LCHlch(31.74, 66.74, 301.22°)
OKLaboklab(42.59% 0.0252 -0.1643)
OKLCHoklch(42.59% 0.166 278.7)
XYZxyz(10.5591, 6.9703, 36.8580)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403BA6 #A1A63B
analogous
#3B6CA6 #403BA6 #763BA6
triadic
#403BA6 #A6403B #3BA640
tetradic
#403BA6 #A63B6C #A1A63B #3BA676
square
#403BA6 #A63B6C #A1A63B #3BA676
split-complementary
#403BA6 #A6763B #6CA63B
monochromatic
#1D1B4C #2F2B79 #403BA6 #5F5AC4 #8B87D4

Accessibility & contrast

On white

8.77
#403BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#403BA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403BA6
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403BA6#FFFFFF#000000##FFFFFF
##403BA61.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA9
Deuteranopia (green-blind)
#0046A4
Tritanopia (blue-blind)
#00566B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #403ba6;
/* rgb */ color: rgb(64, 59, 166);
/* oklch */ color: oklch(42.6% 0.166 278.7);
Tailwind
colors: {
  custom: {
    50: '#8071c1',
    500: '#403ba6',
    950: '#000000',
  },
}
SCSS
$custom: #403ba6;
$custom-light: #8071c1;
$custom-dark: #000000;
JSON
{
  "hex": "#403ba6",
  "rgb": {
    "r": 64,
    "g": 59,
    "b": 166
  },
  "hsl": {
    "h": 242.804,
    "s": 47.556,
    "l": 44.118
  },
  "oklch": {
    "l": 0.42589,
    "c": 0.16625,
    "h": 278.7
  },
  "luminance": 0.06971
}

Semantic roles & 50–950 ramp

primary
#403BA6
secondary
#BCBF7E
accent
#D751D1
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #403BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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