#402BCC#402BCC

#402BCC is a dark, highly saturated blue. Relative luminance 0.072; OKLCH L 44.0% C 0.230 H 277.2°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#402BCC
RGBrgb(64, 43, 204)
HSLhsl(248, 65%, 48%)
HSVhsv(248, 79%, 80%)
CMYKcmyk(68.6%, 78.9%, 0%, 20%)
CIE-LABlab(32.20, 55.48, -78.80)
CIE-LCHlch(32.20, 96.37, 305.15°)
OKLaboklab(44.02% 0.0287 -0.2277)
OKLCHoklch(44.02% 0.23 277.2)
XYZxyz(13.8738, 7.1761, 57.7690)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402BCC #B7CC2B
analogous
#2B66CC #402BCC #902BCC
triadic
#402BCC #CC402B #2BCC40
tetradic
#402BCC #CC2B66 #B7CC2B #2BCC90
square
#402BCC #CC2B66 #B7CC2B #2BCC90
split-complementary
#402BCC #CC902B #66CC2B
monochromatic
#201667 #302099 #402BCC #6958DC #978BE7

Accessibility & contrast

On white

8.62
#402BCC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#402BCC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402BCC
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402BCC#FFFFFF#000000##FFFFFF
##402BCC1.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052D0
Deuteranopia (green-blind)
#0045C9
Tritanopia (blue-blind)
#005C7C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #402bcc;
/* rgb */ color: rgb(64, 43, 204);
/* oklch */ color: oklch(44.0% 0.230 277.2);
Tailwind
colors: {
  custom: {
    50: '#8969dd',
    500: '#402bcc',
    950: '#000000',
  },
}
SCSS
$custom: #402bcc;
$custom-light: #8969dd;
$custom-dark: #000000;
JSON
{
  "hex": "#402bcc",
  "rgb": {
    "r": 64,
    "g": 43,
    "b": 204
  },
  "hsl": {
    "h": 247.826,
    "s": 65.182,
    "l": 48.431
  },
  "oklch": {
    "l": 0.44018,
    "c": 0.22951,
    "h": 277.2
  },
  "luminance": 0.07177
}

Semantic roles & 50–950 ramp

primary
#402BCC
secondary
#C6D082
accent
#E840D2
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #402BCC

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

Preview Lab → · Contrast checker → · Palette generator →

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