#403FA2#403FA2

#403FA2 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.0% C 0.156 H 278.0°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#403FA2
RGBrgb(64, 63, 162)
HSLhsl(241, 44%, 44%)
HSVhsv(241, 61%, 64%)
CMYKcmyk(60.5%, 61.1%, 0%, 36.5%)
CIE-LABlab(32.38, 30.72, -53.63)
CIE-LCHlch(32.38, 61.81, 299.80°)
OKLaboklab(42.95% 0.0218 -0.1542)
OKLCHoklch(42.95% 0.156 278)
XYZxyz(10.4114, 7.2529, 35.0267)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403FA2 #A1A23F
analogous
#3F70A2 #403FA2 #723FA2
triadic
#403FA2 #A2403F #3FA240
tetradic
#403FA2 #A23F70 #A1A23F #3FA272
square
#403FA2 #A23F70 #A1A23F #3FA272
split-complementary
#403FA2 #A2723F #70A23F
monochromatic
#1D1D4A #2F2E76 #403FA2 #5F5EC0 #8B8AD1

Accessibility & contrast

On white

8.57
#403FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#403FA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403FA2
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403FA2#FFFFFF#000000##FFFFFF
##403FA21.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#0048A0
Tritanopia (blue-blind)
#00576A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #403fa2;
/* rgb */ color: rgb(64, 63, 162);
/* oklch */ color: oklch(43.0% 0.156 278.0);
Tailwind
colors: {
  custom: {
    50: '#7f74be',
    500: '#403fa2',
    950: '#000000',
  },
}
SCSS
$custom: #403fa2;
$custom-light: #7f74be;
$custom-dark: #000000;
JSON
{
  "hex": "#403fa2",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 162
  },
  "hsl": {
    "h": 240.606,
    "s": 44,
    "l": 44.118
  },
  "oklch": {
    "l": 0.42954,
    "c": 0.15571,
    "h": 278
  },
  "luminance": 0.07254
}

Semantic roles & 50–950 ramp

primary
#403FA2
secondary
#BCBC81
accent
#D454D2
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #403FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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