#402FAA#402FAA

#402FAA is a dark, vivid blue. Relative luminance 0.060; OKLCH L 41.1% C 0.185 H 280.7°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#402FAA
RGBrgb(64, 47, 170)
HSLhsl(248, 57%, 43%)
HSVhsv(248, 72%, 67%)
CMYKcmyk(62.4%, 72.4%, 0%, 33.3%)
CIE-LABlab(29.47, 43.02, -63.19)
CIE-LCHlch(29.47, 76.44, 304.25°)
OKLaboklab(41.07% 0.0344 -0.1822)
OKLCHoklch(41.07% 0.185 280.7)
XYZxyz(10.3843, 6.0245, 38.6381)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402FAA #99AA2F
analogous
#2F5BAA #402FAA #7E2FAA
triadic
#402FAA #AA402F #2FAA40
tetradic
#402FAA #AA2F5B #99AA2F #2FAA7E
square
#402FAA #AA2F5B #99AA2F #2FAA7E
split-complementary
#402FAA #AA7E2F #5BAA2F
monochromatic
#1C144A #2E227A #402FAA #5C49CD #8779DA

Accessibility & contrast

On white

9.52
#402FAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#402FAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402FAA
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402FAA#FFFFFF#000000##FFFFFF
##402FAA1.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAE
Deuteranopia (green-blind)
#0041A8
Tritanopia (blue-blind)
#005169
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #402faa;
/* rgb */ color: rgb(64, 47, 170);
/* oklch */ color: oklch(41.1% 0.185 280.7);
Tailwind
colors: {
  custom: {
    50: '#826ac4',
    500: '#402faa',
    950: '#000000',
  },
}
SCSS
$custom: #402faa;
$custom-light: #826ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#402faa",
  "rgb": {
    "r": 64,
    "g": 47,
    "b": 170
  },
  "hsl": {
    "h": 248.293,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.41067,
    "c": 0.18546,
    "h": 280.7
  },
  "luminance": 0.06025
}

Semantic roles & 50–950 ramp

primary
#402FAA
secondary
#B7C272
accent
#E048CB
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #402FAA

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

Preview Lab → · Contrast checker → · Palette generator →

#402FAA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva