#403BA0#403BA0

#403BA0 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.1% C 0.158 H 279.3°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#403BA0
RGBrgb(64, 59, 160)
HSLhsl(243, 46%, 43%)
HSVhsv(243, 63%, 63%)
CMYKcmyk(60%, 63.1%, 0%, 37.3%)
CIE-LABlab(31.24, 32.58, -54.27)
CIE-LCHlch(31.24, 63.30, 300.98°)
OKLaboklab(42.07% 0.0257 -0.1561)
OKLCHoklch(42.07% 0.158 279.3)
XYZxyz(10.0215, 6.7553, 34.0267)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403BA0 #9BA03B
analogous
#3B69A0 #403BA0 #723BA0
triadic
#403BA0 #A0403B #3BA040
tetradic
#403BA0 #A03B69 #9BA03B #3BA072
square
#403BA0 #A03B69 #9BA03B #3BA072
split-complementary
#403BA0 #A0723B #69A03B
monochromatic
#1C1A47 #2E2B73 #403BA0 #5C57C1 #8884D2

Accessibility & contrast

On white

8.93
#403BA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#403BA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403BA0
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403BA0#FFFFFF#000000##FFFFFF
##403BA01.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA3
Deuteranopia (green-blind)
#00469E
Tritanopia (blue-blind)
#005468
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #403ba0;
/* rgb */ color: rgb(64, 59, 160);
/* oklch */ color: oklch(42.1% 0.158 279.3);
Tailwind
colors: {
  custom: {
    50: '#7f71bd',
    500: '#403ba0',
    950: '#000000',
  },
}
SCSS
$custom: #403ba0;
$custom-light: #7f71bd;
$custom-dark: #000000;
JSON
{
  "hex": "#403ba0",
  "rgb": {
    "r": 64,
    "g": 59,
    "b": 160
  },
  "hsl": {
    "h": 242.97,
    "s": 46.119,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42072,
    "c": 0.15817,
    "h": 279.3
  },
  "luminance": 0.06756
}

Semantic roles & 50–950 ramp

primary
#403BA0
secondary
#B8BC7B
accent
#D652CF
background
#F8F6FB
surface
#EFECF7
border
#CAC7D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #403BA0

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

Preview Lab → · Contrast checker → · Palette generator →

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