#403CA6#403CA6

#403CA6 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.8% C 0.165 H 278.5°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#403CA6
RGBrgb(64, 60, 166)
HSLhsl(242, 47%, 44%)
HSVhsv(242, 64%, 65%)
CMYKcmyk(61.4%, 63.9%, 0%, 34.9%)
CIE-LABlab(31.98, 33.97, -56.69)
CIE-LCHlch(31.98, 66.09, 300.93°)
OKLaboklab(42.76% 0.0244 -0.1632)
OKLCHoklch(42.76% 0.165 278.5)
XYZxyz(10.6109, 7.0741, 36.8753)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403CA6 #A2A63C
analogous
#3C6DA6 #403CA6 #753CA6
triadic
#403CA6 #A6403C #3CA640
tetradic
#403CA6 #A63C6D #A2A63C #3CA675
square
#403CA6 #A63C6D #A2A63C #3CA675
split-complementary
#403CA6 #A6753C #6DA63C
monochromatic
#1D1C4C #2F2C79 #403CA6 #5F5BC4 #8B88D4

Accessibility & contrast

On white

8.70
#403CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403CA6
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403CA6#FFFFFF#000000##FFFFFF
##403CA61.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A9
Deuteranopia (green-blind)
#0047A4
Tritanopia (blue-blind)
#00576B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #403ca6;
/* rgb */ color: rgb(64, 60, 166);
/* oklch */ color: oklch(42.8% 0.165 278.5);
Tailwind
colors: {
  custom: {
    50: '#8072c1',
    500: '#403ca6',
    950: '#000000',
  },
}
SCSS
$custom: #403ca6;
$custom-light: #8072c1;
$custom-dark: #000000;
JSON
{
  "hex": "#403ca6",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 166
  },
  "hsl": {
    "h": 242.264,
    "s": 46.903,
    "l": 44.314
  },
  "oklch": {
    "l": 0.42761,
    "c": 0.165,
    "h": 278.5
  },
  "luminance": 0.07075
}

Semantic roles & 50–950 ramp

primary
#403CA6
secondary
#BCBE7F
accent
#D751D2
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #403CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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