#403A98#403A98

#403A98 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.2% C 0.149 H 280.5°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#403A98
RGBrgb(64, 58, 152)
HSLhsl(244, 45%, 41%)
HSVhsv(244, 62%, 60%)
CMYKcmyk(57.9%, 61.8%, 0%, 40.4%)
CIE-LABlab(30.36, 30.53, -50.85)
CIE-LCHlch(30.36, 59.31, 300.98°)
OKLaboklab(41.22% 0.0271 -0.146)
OKLCHoklch(41.22% 0.149 280.5)
XYZxyz(9.2931, 6.3825, 30.4419)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403A98 #92983A
analogous
#3A6398 #403A98 #6F3A98
triadic
#403A98 #98403A #3A9840
tetradic
#403A98 #983A63 #92983A #3A986F
square
#403A98 #983A63 #92983A #3A986F
split-complementary
#403A98 #986F3A #63983A
monochromatic
#1B183F #2D296C #403A98 #5952BD #847ECE

Accessibility & contrast

On white

9.22
#403A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#403A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403A98
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403A98#FFFFFF#000000##FFFFFF
##403A981.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9B
Deuteranopia (green-blind)
#004496
Tritanopia (blue-blind)
#105163
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #403a98;
/* rgb */ color: rgb(64, 58, 152);
/* oklch */ color: oklch(41.2% 0.149 280.5);
Tailwind
colors: {
  custom: {
    50: '#7e70b7',
    500: '#403a98',
    950: '#000000',
  },
}
SCSS
$custom: #403a98;
$custom-light: #7e70b7;
$custom-dark: #000000;
JSON
{
  "hex": "#403a98",
  "rgb": {
    "r": 64,
    "g": 58,
    "b": 152
  },
  "hsl": {
    "h": 243.83,
    "s": 44.762,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41221,
    "c": 0.14853,
    "h": 280.5
  },
  "luminance": 0.06383
}

Semantic roles & 50–950 ramp

primary
#403A98
secondary
#B3B876
accent
#D453CC
background
#F8F6FB
surface
#EFECF6
border
#CAC7D0
text
#0B0711
muted
#7C7A80

Preview Lab

Preview with #403A98

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

Preview Lab → · Contrast checker → · Palette generator →

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