#402EAC#402EAC

#402EAC is a dark, vivid blue. Relative luminance 0.060; OKLCH L 41.1% C 0.189 H 280.6°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#402EAC
RGBrgb(64, 46, 172)
HSLhsl(249, 58%, 43%)
HSVhsv(249, 73%, 67%)
CMYKcmyk(62.8%, 73.3%, 0%, 32.5%)
CIE-LABlab(29.47, 44.20, -64.40)
CIE-LCHlch(29.47, 78.11, 304.46°)
OKLaboklab(41.12% 0.0347 -0.1858)
OKLCHoklch(41.12% 0.189 280.6)
XYZxyz(10.5354, 6.0217, 39.6289)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402EAC #9AAC2E
analogous
#2E5BAC #402EAC #7F2EAC
triadic
#402EAC #AC402E #2EAC40
tetradic
#402EAC #AC2E5B #9AAC2E #2EAC7F
square
#402EAC #AC2E5B #9AAC2E #2EAC7F
split-complementary
#402EAC #AC7F2E #5BAC2E
monochromatic
#1C144B #2E217C #402EAC #5C49CE #8779DB

Accessibility & contrast

On white

9.53
#402EAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#402EAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402EAC
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402EAC#FFFFFF#000000##FFFFFF
##402EAC1.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB0
Deuteranopia (green-blind)
#0041AA
Tritanopia (blue-blind)
#00516A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #402eac;
/* rgb */ color: rgb(64, 46, 172);
/* oklch */ color: oklch(41.1% 0.189 280.6);
Tailwind
colors: {
  custom: {
    50: '#8269c6',
    500: '#402eac',
    950: '#000000',
  },
}
SCSS
$custom: #402eac;
$custom-light: #8269c6;
$custom-dark: #000000;
JSON
{
  "hex": "#402eac",
  "rgb": {
    "r": 64,
    "g": 46,
    "b": 172
  },
  "hsl": {
    "h": 248.571,
    "s": 57.798,
    "l": 42.745
  },
  "oklch": {
    "l": 0.4112,
    "c": 0.189,
    "h": 280.6
  },
  "luminance": 0.06023
}

Semantic roles & 50–950 ramp

primary
#402EAC
secondary
#B8C372
accent
#E147CB
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #402EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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