#403DB2#403DB2

#403DB2 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 44.0% C 0.180 H 277.2°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#403DB2
RGBrgb(64, 61, 178)
HSLhsl(242, 49%, 47%)
HSVhsv(242, 66%, 70%)
CMYKcmyk(64%, 65.7%, 0%, 30.2%)
CIE-LABlab(33.22, 37.38, -61.82)
CIE-LCHlch(33.22, 72.24, 301.16°)
OKLaboklab(43.99% 0.0224 -0.1782)
OKLCHoklch(43.99% 0.18 277.2)
XYZxyz(11.8164, 7.6409, 42.9630)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403DB2 #AFB23D
analogous
#3D75B2 #403DB2 #7A3DB2
triadic
#403DB2 #B2403D #3DB240
tetradic
#403DB2 #B23D75 #AFB23D #3DB27A
square
#403DB2 #B23D75 #AFB23D #3DB27A
split-complementary
#403DB2 #B27A3D #75B23D
monochromatic
#1F1E57 #302D84 #403DB2 #6563C9 #9290D9

Accessibility & contrast

On white

8.31
#403DB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#403DB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403DB2
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403DB2#FFFFFF#000000##FFFFFF
##403DB21.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#0049B0
Tritanopia (blue-blind)
#005B72
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #403db2;
/* rgb */ color: rgb(64, 61, 178);
/* oklch */ color: oklch(44.0% 0.180 277.2);
Tailwind
colors: {
  custom: {
    50: '#8273ca',
    500: '#403db2',
    950: '#000000',
  },
}
SCSS
$custom: #403db2;
$custom-light: #8273ca;
$custom-dark: #000000;
JSON
{
  "hex": "#403db2",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 178
  },
  "hsl": {
    "h": 241.538,
    "s": 48.954,
    "l": 46.863
  },
  "oklch": {
    "l": 0.43986,
    "c": 0.17965,
    "h": 277.2
  },
  "luminance": 0.07642
}

Semantic roles & 50–950 ramp

primary
#403DB2
secondary
#C3C487
accent
#D94FD5
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #403DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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