#402EBD#402EBD

#402EBD is a dark, highly saturated blue. Relative luminance 0.067; OKLCH L 42.8% C 0.209 H 278.5°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#402EBD
RGBrgb(64, 46, 189)
HSLhsl(248, 61%, 46%)
HSVhsv(248, 76%, 74%)
CMYKcmyk(66.1%, 75.7%, 0%, 25.9%)
CIE-LABlab(31.15, 49.48, -71.74)
CIE-LCHlch(31.15, 87.15, 304.59°)
OKLaboklab(42.82% 0.0309 -0.2072)
OKLCHoklch(42.82% 0.209 278.5)
XYZxyz(12.2737, 6.7171, 48.7840)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402EBD #ABBD2E
analogous
#2E64BD #402EBD #872EBD
triadic
#402EBD #BD402E #2EBD40
tetradic
#402EBD #BD2E64 #ABBD2E #2EBD87
square
#402EBD #BD2E64 #ABBD2E #2EBD87
split-complementary
#402EBD #BD872E #64BD2E
monochromatic
#1F165B #2F228C #402EBD #6353D5 #9084E1

Accessibility & contrast

On white

8.96
#402EBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#402EBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402EBD
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402EBD#FFFFFF#000000##FFFFFF
##402EBD1.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC1
Deuteranopia (green-blind)
#0043BA
Tritanopia (blue-blind)
#005874
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #402ebd;
/* rgb */ color: rgb(64, 46, 189);
/* oklch */ color: oklch(42.8% 0.209 278.5);
Tailwind
colors: {
  custom: {
    50: '#866ad2',
    500: '#402ebd',
    950: '#000000',
  },
}
SCSS
$custom: #402ebd;
$custom-light: #866ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#402ebd",
  "rgb": {
    "r": 64,
    "g": 46,
    "b": 189
  },
  "hsl": {
    "h": 247.552,
    "s": 60.851,
    "l": 46.078
  },
  "oklch": {
    "l": 0.42818,
    "c": 0.20948,
    "h": 278.5
  },
  "luminance": 0.06718
}

Semantic roles & 50–950 ramp

primary
#402EBD
secondary
#C1CA7C
accent
#E444D0
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0D0714
muted
#7D7A83

Preview Lab

Preview with #402EBD

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

Preview Lab → · Contrast checker → · Palette generator →

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