#402CBE#402CBE

#402CBE is a dark, highly saturated blue. Relative luminance 0.066; OKLCH L 42.7% C 0.213 H 278.6°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#402CBE
RGBrgb(64, 44, 190)
HSLhsl(248, 62%, 46%)
HSVhsv(248, 77%, 75%)
CMYKcmyk(66.3%, 76.8%, 0%, 25.5%)
CIE-LABlab(30.90, 50.81, -72.75)
CIE-LCHlch(30.90, 88.74, 304.93°)
OKLaboklab(42.67% 0.0318 -0.2101)
OKLCHoklch(42.67% 0.213 278.6)
XYZxyz(12.3063, 6.6080, 49.3322)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402CBE #AABE2C
analogous
#2C61BE #402CBE #892CBE
triadic
#402CBE #BE402C #2CBE40
tetradic
#402CBE #BE2C61 #AABE2C #2CBE89
square
#402CBE #BE2C61 #AABE2C #2CBE89
split-complementary
#402CBE #BE892C #61BE2C
monochromatic
#1F155B #2F208C #402CBE #6351D7 #8F82E2

Accessibility & contrast

On white

9.04
#402CBE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#402CBE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402CBE
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402CBE#FFFFFF#000000##FFFFFF
##402CBE1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC2
Deuteranopia (green-blind)
#0043BB
Tritanopia (blue-blind)
#005774
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #402cbe;
/* rgb */ color: rgb(64, 44, 190);
/* oklch */ color: oklch(42.7% 0.213 278.6);
Tailwind
colors: {
  custom: {
    50: '#8669d3',
    500: '#402cbe',
    950: '#000000',
  },
}
SCSS
$custom: #402cbe;
$custom-light: #8669d3;
$custom-dark: #000000;
JSON
{
  "hex": "#402cbe",
  "rgb": {
    "r": 64,
    "g": 44,
    "b": 190
  },
  "hsl": {
    "h": 248.219,
    "s": 62.393,
    "l": 45.882
  },
  "oklch": {
    "l": 0.42669,
    "c": 0.21251,
    "h": 278.6
  },
  "luminance": 0.06609
}

Semantic roles & 50–950 ramp

primary
#402CBE
secondary
#C0CB7B
accent
#E542CF
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #402CBE

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

Preview Lab → · Contrast checker → · Palette generator →

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