#403C97#403C97

#403C97 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.5% C 0.144 H 280.0°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#403C97
RGBrgb(64, 60, 151)
HSLhsl(243, 43%, 41%)
HSVhsv(243, 60%, 59%)
CMYKcmyk(57.6%, 60.3%, 0%, 40.8%)
CIE-LABlab(30.77, 28.91, -49.57)
CIE-LCHlch(30.77, 57.38, 300.26°)
OKLaboklab(41.5% 0.0251 -0.1422)
OKLCHoklch(41.5% 0.144 280)
XYZxyz(9.3144, 6.5555, 30.0467)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403C97 #93973C
analogous
#3C6697 #403C97 #6E3C97
triadic
#403C97 #97403C #3C9740
tetradic
#403C97 #973C66 #93973C #3C976E
square
#403C97 #973C66 #93973C #3C976E
split-complementary
#403C97 #976E3C #66973C
monochromatic
#1B193F #2D2B6B #403C97 #5955BB #8481CD

Accessibility & contrast

On white

9.09
#403C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#403C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403C97
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403C97#FFFFFF#000000##FFFFFF
##403C971.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#004595
Tritanopia (blue-blind)
#115263
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #403c97;
/* rgb */ color: rgb(64, 60, 151);
/* oklch */ color: oklch(41.5% 0.144 280.0);
Tailwind
colors: {
  custom: {
    50: '#7d72b6',
    500: '#403c97',
    950: '#000000',
  },
}
SCSS
$custom: #403c97;
$custom-light: #7d72b6;
$custom-dark: #000000;
JSON
{
  "hex": "#403c97",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 151
  },
  "hsl": {
    "h": 242.637,
    "s": 43.128,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41502,
    "c": 0.14444,
    "h": 280
  },
  "luminance": 0.06556
}

Semantic roles & 50–950 ramp

primary
#403C97
secondary
#B4B778
accent
#D355CD
background
#F8F6FB
surface
#EFECF6
border
#CAC7D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #403C97

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

Preview Lab → · Contrast checker → · Palette generator →

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