#403DA2#403DA2

#403DA2 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.6% C 0.158 H 278.6°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#403DA2
RGBrgb(64, 61, 162)
HSLhsl(242, 45%, 44%)
HSVhsv(242, 62%, 64%)
CMYKcmyk(60.5%, 62.3%, 0%, 36.5%)
CIE-LABlab(31.89, 31.99, -54.43)
CIE-LCHlch(31.89, 63.13, 300.44°)
OKLaboklab(42.6% 0.0237 -0.1565)
OKLCHoklch(42.6% 0.158 278.6)
XYZxyz(10.3026, 7.0354, 34.9905)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403DA2 #9FA23D
analogous
#3D6CA2 #403DA2 #723DA2
triadic
#403DA2 #A2403D #3DA240
tetradic
#403DA2 #A23D6C #9FA23D #3DA272
square
#403DA2 #A23D6C #9FA23D #3DA272
split-complementary
#403DA2 #A2723D #6CA23D
monochromatic
#1D1C49 #2E2C76 #403DA2 #5E5BC1 #8A87D2

Accessibility & contrast

On white

8.72
#403DA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#403DA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403DA2
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403DA2#FFFFFF#000000##FFFFFF
##403DA21.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#0047A0
Tritanopia (blue-blind)
#005669
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #403da2;
/* rgb */ color: rgb(64, 61, 162);
/* oklch */ color: oklch(42.6% 0.158 278.6);
Tailwind
colors: {
  custom: {
    50: '#7f73be',
    500: '#403da2',
    950: '#000000',
  },
}
SCSS
$custom: #403da2;
$custom-light: #7f73be;
$custom-dark: #000000;
JSON
{
  "hex": "#403da2",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 162
  },
  "hsl": {
    "h": 241.782,
    "s": 45.291,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42595,
    "c": 0.1583,
    "h": 278.6
  },
  "luminance": 0.07036
}

Semantic roles & 50–950 ramp

primary
#403DA2
secondary
#BBBC7E
accent
#D553D1
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #403DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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