#403DA1#403DA1

#403DA1 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.5% C 0.157 H 278.7°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#403DA1
RGBrgb(64, 61, 161)
HSLhsl(242, 45%, 44%)
HSVhsv(242, 62%, 63%)
CMYKcmyk(60.2%, 62.1%, 0%, 36.9%)
CIE-LABlab(31.81, 31.65, -53.95)
CIE-LCHlch(31.81, 62.55, 300.40°)
OKLaboklab(42.51% 0.0237 -0.1551)
OKLCHoklch(42.51% 0.157 278.7)
XYZxyz(10.2141, 6.9999, 34.5242)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403DA1 #9EA13D
analogous
#3D6CA1 #403DA1 #723DA1
triadic
#403DA1 #A1403D #3DA140
tetradic
#403DA1 #A13D6C #9EA13D #3DA172
square
#403DA1 #A13D6C #9EA13D #3DA172
split-complementary
#403DA1 #A1723D #6CA13D
monochromatic
#1D1B48 #2E2C75 #403DA1 #5E5BC1 #8987D1

Accessibility & contrast

On white

8.75
#403DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#403DA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403DA1
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403DA1#FFFFFF#000000##FFFFFF
##403DA11.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA4
Deuteranopia (green-blind)
#00479F
Tritanopia (blue-blind)
#005669
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #403da1;
/* rgb */ color: rgb(64, 61, 161);
/* oklch */ color: oklch(42.5% 0.157 278.7);
Tailwind
colors: {
  custom: {
    50: '#7f73be',
    500: '#403da1',
    950: '#000000',
  },
}
SCSS
$custom: #403da1;
$custom-light: #7f73be;
$custom-dark: #000000;
JSON
{
  "hex": "#403da1",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 161
  },
  "hsl": {
    "h": 241.8,
    "s": 45.045,
    "l": 43.529
  },
  "oklch": {
    "l": 0.42511,
    "c": 0.15695,
    "h": 278.7
  },
  "luminance": 0.07001
}

Semantic roles & 50–950 ramp

primary
#403DA1
secondary
#BABC7E
accent
#D553D1
background
#F8F6FB
surface
#EFECF7
border
#CAC7D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #403DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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