#403BA5#403BA5

#403BA5 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.5% C 0.165 H 278.8°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#403BA5
RGBrgb(64, 59, 165)
HSLhsl(243, 47%, 44%)
HSVhsv(243, 64%, 65%)
CMYKcmyk(61.2%, 64.2%, 0%, 35.3%)
CIE-LABlab(31.66, 34.25, -56.61)
CIE-LCHlch(31.66, 66.17, 301.18°)
OKLaboklab(42.5% 0.0253 -0.163)
OKLCHoklch(42.5% 0.165 278.8)
XYZxyz(10.4677, 6.9338, 36.3768)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403BA5 #A0A53B
analogous
#3B6BA5 #403BA5 #753BA5
triadic
#403BA5 #A5403B #3BA540
tetradic
#403BA5 #A53B6B #A0A53B #3BA575
square
#403BA5 #A53B6B #A0A53B #3BA575
split-complementary
#403BA5 #A5753B #6BA53B
monochromatic
#1D1B4B #2F2B78 #403BA5 #5E59C4 #8A86D4

Accessibility & contrast

On white

8.80
#403BA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403BA5
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403BA5#FFFFFF#000000##FFFFFF
##403BA51.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA8
Deuteranopia (green-blind)
#0046A3
Tritanopia (blue-blind)
#00566A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #403ba5;
/* rgb */ color: rgb(64, 59, 165);
/* oklch */ color: oklch(42.5% 0.165 278.8);
Tailwind
colors: {
  custom: {
    50: '#8071c1',
    500: '#403ba5',
    950: '#000000',
  },
}
SCSS
$custom: #403ba5;
$custom-light: #8071c1;
$custom-dark: #000000;
JSON
{
  "hex": "#403ba5",
  "rgb": {
    "r": 64,
    "g": 59,
    "b": 165
  },
  "hsl": {
    "h": 242.83,
    "s": 47.321,
    "l": 43.922
  },
  "oklch": {
    "l": 0.42502,
    "c": 0.16491,
    "h": 278.8
  },
  "luminance": 0.06935
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #403BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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