#402AEB#402AEB

#402AEB is a mid, highly saturated blue. Relative luminance 0.087; OKLCH L 47.3% C 0.264 H 274.5°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#402AEB
RGBrgb(64, 42, 235)
HSLhsl(247, 83%, 54%)
HSVhsv(247, 82%, 92%)
CMYKcmyk(72.8%, 82.1%, 0%, 7.8%)
CIE-LABlab(35.48, 64.86, -91.20)
CIE-LCHlch(35.48, 111.91, 305.42°)
OKLaboklab(47.28% 0.0207 -0.2637)
OKLCHoklch(47.28% 0.264 274.5)
XYZxyz(17.9328, 8.7423, 79.3235)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402AEB #D5EB2A
analogous
#2A75EB #402AEB #A02AEB
triadic
#402AEB #EB402A #2AEB40
tetradic
#402AEB #EB2A75 #D5EB2A #2AEBA0
square
#402AEB #EB2A75 #D5EB2A #2AEBA0
split-complementary
#402AEB #EBA02A #75EB2A
monochromatic
#1C0D8D #2713C5 #402AEB #7262F0 #A49AF6

Accessibility & contrast

On white

7.64
#402AEB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#402AEB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402AEB
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402AEB#FFFFFF#000000##FFFFFF
##402AEB1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CF0
Deuteranopia (green-blind)
#004AE8
Tritanopia (blue-blind)
#00698E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #402aeb;
/* rgb */ color: rgb(64, 42, 235);
/* oklch */ color: oklch(47.3% 0.264 274.5);
Tailwind
colors: {
  custom: {
    50: '#8f6bf3',
    500: '#402aeb',
    950: '#000000',
  },
}
SCSS
$custom: #402aeb;
$custom-light: #8f6bf3;
$custom-dark: #000000;
JSON
{
  "hex": "#402aeb",
  "rgb": {
    "r": 64,
    "g": 42,
    "b": 235
  },
  "hsl": {
    "h": 246.839,
    "s": 82.833,
    "l": 54.314
  },
  "oklch": {
    "l": 0.47283,
    "c": 0.26448,
    "h": 274.5
  },
  "luminance": 0.08744
}

Semantic roles & 50–950 ramp

primary
#402AEB
secondary
#D8E18F
accent
#F92FE2
background
#FAF6FF
surface
#F3ECFE
border
#CDC7D6
text
#0F0717
muted
#7F7A85

Preview Lab

Preview with #402AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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