#403AB2#403AB2

#403AB2 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.5% C 0.183 H 277.8°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#403AB2
RGBrgb(64, 58, 178)
HSLhsl(243, 51%, 46%)
HSVhsv(243, 67%, 70%)
CMYKcmyk(64%, 67.4%, 0%, 30.2%)
CIE-LABlab(32.55, 39.20, -62.93)
CIE-LCHlch(32.55, 74.14, 301.92°)
OKLaboklab(43.5% 0.0248 -0.1815)
OKLCHoklch(43.5% 0.183 277.8)
XYZxyz(11.6607, 7.3295, 42.9111)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403AB2 #ACB23A
analogous
#3A70B2 #403AB2 #7C3AB2
triadic
#403AB2 #B2403A #3AB240
tetradic
#403AB2 #B23A70 #ACB23A #3AB27C
square
#403AB2 #B23A70 #ACB23A #3AB27C
split-complementary
#403AB2 #B27C3A #70B23A
monochromatic
#1F1C56 #2F2B84 #403AB2 #645FCB #918DDA

Accessibility & contrast

On white

8.52
#403AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#403AB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403AB2
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403AB2#FFFFFF#000000##FFFFFF
##403AB21.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#0048B0
Tritanopia (blue-blind)
#005A71
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #403ab2;
/* rgb */ color: rgb(64, 58, 178);
/* oklch */ color: oklch(43.5% 0.183 277.8);
Tailwind
colors: {
  custom: {
    50: '#8271ca',
    500: '#403ab2',
    950: '#000000',
  },
}
SCSS
$custom: #403ab2;
$custom-light: #8271ca;
$custom-dark: #000000;
JSON
{
  "hex": "#403ab2",
  "rgb": {
    "r": 64,
    "g": 58,
    "b": 178
  },
  "hsl": {
    "h": 243,
    "s": 50.847,
    "l": 46.275
  },
  "oklch": {
    "l": 0.43495,
    "c": 0.18319,
    "h": 277.8
  },
  "luminance": 0.0733
}

Semantic roles & 50–950 ramp

primary
#403AB2
secondary
#C1C483
accent
#DA4DD3
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #403AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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