#402FC8#402FC8

#402FC8 is a dark, highly saturated blue. Relative luminance 0.073; OKLCH L 44.1% C 0.221 H 277.2°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#402FC8
RGBrgb(64, 47, 200)
HSLhsl(247, 62%, 48%)
HSVhsv(247, 77%, 78%)
CMYKcmyk(68%, 76.5%, 0%, 21.6%)
CIE-LABlab(32.46, 52.33, -76.04)
CIE-LCHlch(32.46, 92.30, 304.53°)
OKLaboklab(44.07% 0.0278 -0.2197)
OKLCHoklch(44.07% 0.221 277.2)
XYZxyz(13.5528, 7.2919, 55.3256)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402FC8 #B7C82F
analogous
#2F6AC8 #402FC8 #8C2FC8
triadic
#402FC8 #C8402F #2FC840
tetradic
#402FC8 #C82F6A #B7C82F #2FC88C
square
#402FC8 #C82F6A #B7C82F #2FC88C
split-complementary
#402FC8 #C88C2F #6AC82F
monochromatic
#201865 #302396 #402FC8 #695CD9 #978DE4

Accessibility & contrast

On white

8.54
#402FC8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#402FC8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402FC8
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402FC8#FFFFFF#000000##FFFFFF
##402FC81.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053CC
Deuteranopia (green-blind)
#0046C5
Tritanopia (blue-blind)
#005C7A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #402fc8;
/* rgb */ color: rgb(64, 47, 200);
/* oklch */ color: oklch(44.1% 0.221 277.2);
Tailwind
colors: {
  custom: {
    50: '#886bda',
    500: '#402fc8',
    950: '#000000',
  },
}
SCSS
$custom: #402fc8;
$custom-light: #886bda;
$custom-dark: #000000;
JSON
{
  "hex": "#402fc8",
  "rgb": {
    "r": 64,
    "g": 47,
    "b": 200
  },
  "hsl": {
    "h": 246.667,
    "s": 61.943,
    "l": 48.431
  },
  "oklch": {
    "l": 0.44073,
    "c": 0.22147,
    "h": 277.2
  },
  "luminance": 0.07293
}

Semantic roles & 50–950 ramp

primary
#402FC8
secondary
#C6CF84
accent
#E543D3
background
#F9F6FD
surface
#F1EBFB
border
#CBC6D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #402FC8

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

Preview Lab → · Contrast checker → · Palette generator →

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