#403A9C#403A9C

#403A9C is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.6% C 0.154 H 280.1°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#403A9C
RGBrgb(64, 58, 156)
HSLhsl(244, 46%, 42%)
HSVhsv(244, 63%, 61%)
CMYKcmyk(59%, 62.8%, 0%, 38.8%)
CIE-LABlab(30.68, 31.87, -52.76)
CIE-LCHlch(30.68, 61.64, 301.13°)
OKLaboklab(41.56% 0.0269 -0.1516)
OKLCHoklch(41.56% 0.154 280.1)
XYZxyz(9.6263, 6.5157, 32.1964)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403A9C #969C3A
analogous
#3A659C #403A9C #713A9C
triadic
#403A9C #9C403A #3A9C40
tetradic
#403A9C #9C3A65 #969C3A #3A9C71
square
#403A9C #9C3A65 #969C3A #3A9C71
split-complementary
#403A9C #9C713A #659C3A
monochromatic
#1B1943 #2E296F #403A9C #5A54BF #8580D0

Accessibility & contrast

On white

9.12
#403A9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#403A9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403A9C
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403A9C#FFFFFF#000000##FFFFFF
##403A9C1.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9F
Deuteranopia (green-blind)
#00449A
Tritanopia (blue-blind)
#065265
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #403a9c;
/* rgb */ color: rgb(64, 58, 156);
/* oklch */ color: oklch(41.6% 0.154 280.1);
Tailwind
colors: {
  custom: {
    50: '#7e70ba',
    500: '#403a9c',
    950: '#000000',
  },
}
SCSS
$custom: #403a9c;
$custom-light: #7e70ba;
$custom-dark: #000000;
JSON
{
  "hex": "#403a9c",
  "rgb": {
    "r": 64,
    "g": 58,
    "b": 156
  },
  "hsl": {
    "h": 243.673,
    "s": 45.794,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41556,
    "c": 0.15402,
    "h": 280.1
  },
  "luminance": 0.06516
}

Semantic roles & 50–950 ramp

primary
#403A9C
secondary
#B6BA78
accent
#D552CD
background
#F8F6FB
surface
#EFECF6
border
#CAC7D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #403A9C

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

Preview Lab → · Contrast checker → · Palette generator →

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