#403FA8#403FA8

#403FA8 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.5% C 0.164 H 277.5°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#403FA8
RGBrgb(64, 63, 168)
HSLhsl(241, 45%, 45%)
HSVhsv(241, 63%, 66%)
CMYKcmyk(61.9%, 62.5%, 0%, 34.1%)
CIE-LABlab(32.86, 32.76, -56.46)
CIE-LCHlch(32.86, 65.27, 300.12°)
OKLaboklab(43.46% 0.0215 -0.1625)
OKLCHoklch(43.46% 0.164 277.5)
XYZxyz(10.9575, 7.4713, 37.9029)
Luminance0.0747 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403FA8 #A7A83F
analogous
#3F73A8 #403FA8 #743FA8
triadic
#403FA8 #A8403F #3FA840
tetradic
#403FA8 #A83F73 #A7A83F #3FA874
square
#403FA8 #A83F73 #A7A83F #3FA874
split-complementary
#403FA8 #A8743F #73A83F
monochromatic
#1E1E4F #2F2E7B #403FA8 #6261C4 #8E8DD4

Accessibility & contrast

On white

8.42
#403FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#403FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403FA8
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403FA8#FFFFFF#000000##FFFFFF
##403FA81.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AB
Deuteranopia (green-blind)
#0049A6
Tritanopia (blue-blind)
#00596D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #403fa8;
/* rgb */ color: rgb(64, 63, 168);
/* oklch */ color: oklch(43.5% 0.164 277.5);
Tailwind
colors: {
  custom: {
    50: '#8074c3',
    500: '#403fa8',
    950: '#000000',
  },
}
SCSS
$custom: #403fa8;
$custom-light: #8074c3;
$custom-dark: #000000;
JSON
{
  "hex": "#403fa8",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 168
  },
  "hsl": {
    "h": 240.571,
    "s": 45.455,
    "l": 45.294
  },
  "oklch": {
    "l": 0.43458,
    "c": 0.16389,
    "h": 277.5
  },
  "luminance": 0.07472
}

Semantic roles & 50–950 ramp

primary
#403FA8
secondary
#BFBF84
accent
#D553D4
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #403FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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