#403CA0#403CA0

#403CA0 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.2% C 0.157 H 279.1°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#403CA0
RGBrgb(64, 60, 160)
HSLhsl(242, 45%, 43%)
HSVhsv(242, 63%, 63%)
CMYKcmyk(60%, 62.5%, 0%, 37.3%)
CIE-LABlab(31.48, 31.95, -53.88)
CIE-LCHlch(31.48, 62.64, 300.67°)
OKLaboklab(42.25% 0.0247 -0.1549)
OKLCHoklch(42.25% 0.157 279.1)
XYZxyz(10.0734, 6.8591, 34.0440)
Luminance0.0686 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403CA0 #9CA03C
analogous
#3C6AA0 #403CA0 #723CA0
triadic
#403CA0 #A0403C #3CA040
tetradic
#403CA0 #A03C6A #9CA03C #3CA072
square
#403CA0 #A03C6A #9CA03C #3CA072
split-complementary
#403CA0 #A0723C #6AA03C
monochromatic
#1C1B47 #2E2B73 #403CA0 #5D59C1 #8885D1

Accessibility & contrast

On white

8.85
#403CA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#403CA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403CA0
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403CA0#FFFFFF#000000##FFFFFF
##403CA01.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA3
Deuteranopia (green-blind)
#00469E
Tritanopia (blue-blind)
#005568
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #403ca0;
/* rgb */ color: rgb(64, 60, 160);
/* oklch */ color: oklch(42.2% 0.157 279.1);
Tailwind
colors: {
  custom: {
    50: '#7f72bd',
    500: '#403ca0',
    950: '#000000',
  },
}
SCSS
$custom: #403ca0;
$custom-light: #7f72bd;
$custom-dark: #000000;
JSON
{
  "hex": "#403ca0",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 160
  },
  "hsl": {
    "h": 242.4,
    "s": 45.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42248,
    "c": 0.15687,
    "h": 279.1
  },
  "luminance": 0.0686
}

Semantic roles & 50–950 ramp

primary
#403CA0
secondary
#B9BB7C
accent
#D553D0
background
#F8F6FB
surface
#EFECF7
border
#CAC7D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #403CA0

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

Preview Lab → · Contrast checker → · Palette generator →

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