#402BC0#402BC0

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

Color values

HEX#402BC0
RGBrgb(64, 43, 192)
HSLhsl(248, 63%, 46%)
HSVhsv(248, 78%, 75%)
CMYKcmyk(66.7%, 77.6%, 0%, 24.7%)
CIE-LABlab(30.93, 51.91, -73.87)
CIE-LCHlch(30.93, 90.29, 305.09°)
OKLaboklab(42.75% 0.0318 -0.2134)
OKLCHoklch(42.75% 0.216 278.5)
XYZxyz(12.4896, 6.6225, 50.4790)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402BC0 #ABC02B
analogous
#2B61C0 #402BC0 #8A2BC0
triadic
#402BC0 #C0402B #2BC040
tetradic
#402BC0 #C02B61 #ABC02B #2BC08A
square
#402BC0 #C02B61 #ABC02B #2BC08A
split-complementary
#402BC0 #C08A2B #61C02B
monochromatic
#1F155C #2F208E #402BC0 #6350D8 #9082E3

Accessibility & contrast

On white

9.03
#402BC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #402BC0
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402BC0#FFFFFF#000000##FFFFFF
##402BC01.009.032.329.03
#FFFFFF9.031.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC4
Deuteranopia (green-blind)
#0043BD
Tritanopia (blue-blind)
#005775
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #402bc0;
/* rgb */ color: rgb(64, 43, 192);
/* oklch */ color: oklch(42.8% 0.216 278.5);
Tailwind
colors: {
  custom: {
    50: '#8668d4',
    500: '#402bc0',
    950: '#000000',
  },
}
SCSS
$custom: #402bc0;
$custom-light: #8668d4;
$custom-dark: #000000;
JSON
{
  "hex": "#402bc0",
  "rgb": {
    "r": 64,
    "g": 43,
    "b": 192
  },
  "hsl": {
    "h": 248.456,
    "s": 63.404,
    "l": 46.078
  },
  "oklch": {
    "l": 0.42754,
    "c": 0.21574,
    "h": 278.5
  },
  "luminance": 0.06624
}

Semantic roles & 50–950 ramp

primary
#402BC0
secondary
#C1CC7B
accent
#E641CF
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #402BC0

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

Preview Lab → · Contrast checker → · Palette generator →

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