#402EBC#402EBC

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

Color values

HEX#402EBC
RGBrgb(64, 46, 188)
HSLhsl(248, 61%, 46%)
HSVhsv(248, 76%, 74%)
CMYKcmyk(66%, 75.5%, 0%, 26.3%)
CIE-LABlab(31.05, 49.17, -71.32)
CIE-LCHlch(31.05, 86.62, 304.58°)
OKLaboklab(42.72% 0.0311 -0.2059)
OKLCHoklch(42.72% 0.208 278.6)
XYZxyz(12.1655, 6.6738, 48.2143)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402EBC #AABC2E
analogous
#2E63BC #402EBC #872EBC
triadic
#402EBC #BC402E #2EBC40
tetradic
#402EBC #BC2E63 #AABC2E #2EBC87
square
#402EBC #BC2E63 #AABC2E #2EBC87
split-complementary
#402EBC #BC872E #63BC2E
monochromatic
#1F165A #2F228B #402EBC #6352D5 #8F84E1

Accessibility & contrast

On white

8.99
#402EBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #402EBC
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402EBC#FFFFFF#000000##FFFFFF
##402EBC1.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC0
Deuteranopia (green-blind)
#0043B9
Tritanopia (blue-blind)
#005773
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #402ebc;
/* rgb */ color: rgb(64, 46, 188);
/* oklch */ color: oklch(42.7% 0.208 278.6);
Tailwind
colors: {
  custom: {
    50: '#856ad1',
    500: '#402ebc',
    950: '#000000',
  },
}
SCSS
$custom: #402ebc;
$custom-light: #856ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#402ebc",
  "rgb": {
    "r": 64,
    "g": 46,
    "b": 188
  },
  "hsl": {
    "h": 247.606,
    "s": 60.684,
    "l": 45.882
  },
  "oklch": {
    "l": 0.42717,
    "c": 0.20829,
    "h": 278.6
  },
  "luminance": 0.06675
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #402EBC

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

Preview Lab → · Contrast checker → · Palette generator →

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