#403BB2#403BB2

#403BB2 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.7% C 0.182 H 277.6°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#403BB2
RGBrgb(64, 59, 178)
HSLhsl(243, 50%, 46%)
HSVhsv(243, 67%, 70%)
CMYKcmyk(64%, 66.9%, 0%, 30.2%)
CIE-LABlab(32.77, 38.59, -62.57)
CIE-LCHlch(32.77, 73.51, 301.67°)
OKLaboklab(43.66% 0.024 -0.1804)
OKLCHoklch(43.66% 0.182 277.6)
XYZxyz(11.7116, 7.4313, 42.9281)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403BB2 #ADB23B
analogous
#3B72B2 #403BB2 #7C3BB2
triadic
#403BB2 #B2403B #3BB240
tetradic
#403BB2 #B23B72 #ADB23B #3BB27C
square
#403BB2 #B23B72 #ADB23B #3BB27C
split-complementary
#403BB2 #B27C3B #72B23B
monochromatic
#1F1D56 #2F2C84 #403BB2 #6460CA #918EDA

Accessibility & contrast

On white

8.45
#403BB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#403BB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403BB2
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403BB2#FFFFFF#000000##FFFFFF
##403BB21.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #403bb2;
/* rgb */ color: rgb(64, 59, 178);
/* oklch */ color: oklch(43.7% 0.182 277.6);
Tailwind
colors: {
  custom: {
    50: '#8272ca',
    500: '#403bb2',
    950: '#000000',
  },
}
SCSS
$custom: #403bb2;
$custom-light: #8272ca;
$custom-dark: #000000;
JSON
{
  "hex": "#403bb2",
  "rgb": {
    "r": 64,
    "g": 59,
    "b": 178
  },
  "hsl": {
    "h": 242.521,
    "s": 50.211,
    "l": 46.471
  },
  "oklch": {
    "l": 0.43656,
    "c": 0.18201,
    "h": 277.6
  },
  "luminance": 0.07432
}

Semantic roles & 50–950 ramp

primary
#403BB2
secondary
#C2C485
accent
#DA4ED4
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #403BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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