#402BAC#402BAC

#402BAC is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.7% C 0.192 H 281.0°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#402BAC
RGBrgb(64, 43, 172)
HSLhsl(250, 60%, 42%)
HSVhsv(250, 75%, 67%)
CMYKcmyk(62.8%, 75%, 0%, 32.5%)
CIE-LABlab(28.89, 45.83, -65.35)
CIE-LCHlch(28.89, 79.82, 305.04°)
OKLaboklab(40.71% 0.0368 -0.1885)
OKLCHoklch(40.71% 0.192 281)
XYZxyz(10.4223, 5.7955, 39.5912)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402BAC #97AC2B
analogous
#2B57AC #402BAC #802BAC
triadic
#402BAC #AC402B #2BAC40
tetradic
#402BAC #AC2B57 #97AC2B #2BAC80
square
#402BAC #AC2B57 #97AC2B #2BAC80
split-complementary
#402BAC #AC802B #57AC2B
monochromatic
#1C134A #2E1F7B #402BAC #5B44D0 #8675DC

Accessibility & contrast

On white

9.73
#402BAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#402BAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402BAC
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402BAC#FFFFFF#000000##FFFFFF
##402BAC1.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B0
Deuteranopia (green-blind)
#003FAA
Tritanopia (blue-blind)
#005069
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #402bac;
/* rgb */ color: rgb(64, 43, 172);
/* oklch */ color: oklch(40.7% 0.192 281.0);
Tailwind
colors: {
  custom: {
    50: '#8367c6',
    500: '#402bac',
    950: '#000000',
  },
}
SCSS
$custom: #402bac;
$custom-light: #8367c6;
$custom-dark: #000000;
JSON
{
  "hex": "#402bac",
  "rgb": {
    "r": 64,
    "g": 43,
    "b": 172
  },
  "hsl": {
    "h": 249.767,
    "s": 60,
    "l": 42.157
  },
  "oklch": {
    "l": 0.40712,
    "c": 0.19209,
    "h": 281
  },
  "luminance": 0.05796
}

Semantic roles & 50–950 ramp

primary
#402BAC
secondary
#B6C46F
accent
#E345C9
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #402BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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