#403A8A#403A8A

#403A8A is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.1% C 0.129 H 282.3°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#403A8A
RGBrgb(64, 58, 138)
HSLhsl(245, 41%, 38%)
HSVhsv(245, 58%, 54%)
CMYKcmyk(53.6%, 58%, 0%, 45.9%)
CIE-LABlab(29.29, 25.85, -43.99)
CIE-LCHlch(29.29, 51.02, 300.44°)
OKLaboklab(40.09% 0.0274 -0.1258)
OKLCHoklch(40.09% 0.129 282.3)
XYZxyz(8.2135, 5.9506, 24.7556)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403A8A #848A3A
analogous
#3A5C8A #403A8A #683A8A
triadic
#403A8A #8A403A #3A8A40
tetradic
#403A8A #8A3A5C #848A3A #3A8A68
square
#403A8A #8A3A5C #848A3A #3A8A68
split-complementary
#403A8A #8A683A #5C8A3A
monochromatic
#181634 #2C285F #403A8A #554DB4 #7E78C6

Accessibility & contrast

On white

9.59
#403A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#403A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403A8A
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403A8A#FFFFFF#000000##FFFFFF
##403A8A1.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01488D
Deuteranopia (green-blind)
#004288
Tritanopia (blue-blind)
#224C5C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #403a8a;
/* rgb */ color: rgb(64, 58, 138);
/* oklch */ color: oklch(40.1% 0.129 282.3);
Tailwind
colors: {
  custom: {
    50: '#7b70ad',
    500: '#403a8a',
    950: '#000000',
  },
}
SCSS
$custom: #403a8a;
$custom-light: #7b70ad;
$custom-dark: #000000;
JSON
{
  "hex": "#403a8a",
  "rgb": {
    "r": 64,
    "g": 58,
    "b": 138
  },
  "hsl": {
    "h": 244.5,
    "s": 40.816,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40093,
    "c": 0.12879,
    "h": 282.3
  },
  "luminance": 0.05951
}

Semantic roles & 50–950 ramp

primary
#403A8A
secondary
#ABB070
accent
#D157C8
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#0A0710
muted
#7C7A7F

Preview Lab

Preview with #403A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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