#402FA0#402FA0

#402FA0 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.1% C 0.173 H 282.1°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#402FA0
RGBrgb(64, 47, 160)
HSLhsl(249, 55%, 41%)
HSVhsv(249, 71%, 63%)
CMYKcmyk(60%, 70.6%, 0%, 37.3%)
CIE-LABlab(28.54, 39.85, -58.69)
CIE-LCHlch(28.54, 70.94, 304.18°)
OKLaboklab(40.11% 0.0363 -0.169)
OKLCHoklch(40.11% 0.173 282.1)
XYZxyz(9.4741, 5.6604, 33.8442)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402FA0 #8FA02F
analogous
#2F56A0 #402FA0 #792FA0
triadic
#402FA0 #A0402F #2FA040
tetradic
#402FA0 #A02F56 #8FA02F #2FA079
square
#402FA0 #A02F56 #8FA02F #2FA079
split-complementary
#402FA0 #A0792F #56A02F
monochromatic
#1A1341 #2D2171 #402FA0 #5844C8 #8273D6

Accessibility & contrast

On white

9.85
#402FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#402FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402FA0
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402FA0#FFFFFF#000000##FFFFFF
##402FA01.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A3
Deuteranopia (green-blind)
#003F9E
Tritanopia (blue-blind)
#004D64
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #402fa0;
/* rgb */ color: rgb(64, 47, 160);
/* oklch */ color: oklch(40.1% 0.173 282.1);
Tailwind
colors: {
  custom: {
    50: '#8069bd',
    500: '#402fa0',
    950: '#000000',
  },
}
SCSS
$custom: #402fa0;
$custom-light: #8069bd;
$custom-dark: #000000;
JSON
{
  "hex": "#402fa0",
  "rgb": {
    "r": 64,
    "g": 47,
    "b": 160
  },
  "hsl": {
    "h": 249.027,
    "s": 54.589,
    "l": 40.588
  },
  "oklch": {
    "l": 0.40114,
    "c": 0.17291,
    "h": 282.1
  },
  "luminance": 0.05661
}

Semantic roles & 50–950 ramp

primary
#402FA0
secondary
#B2BE6D
accent
#DE4AC8
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #402FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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