#402EAF#402EAF

#402EAF is a dark, vivid blue. Relative luminance 0.061; OKLCH L 41.4% C 0.193 H 280.2°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#402EAF
RGBrgb(64, 46, 175)
HSLhsl(248, 58%, 43%)
HSVhsv(248, 74%, 69%)
CMYKcmyk(63.4%, 73.7%, 0%, 31.4%)
CIE-LABlab(29.76, 45.14, -65.72)
CIE-LCHlch(29.76, 79.73, 304.48°)
OKLaboklab(41.41% 0.0341 -0.1896)
OKLCHoklch(41.41% 0.193 280.2)
XYZxyz(10.8268, 6.1383, 41.1634)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402EAF #9DAF2E
analogous
#2E5CAF #402EAF #802EAF
triadic
#402EAF #AF402E #2EAF40
tetradic
#402EAF #AF2E5C #9DAF2E #2EAF80
square
#402EAF #AF2E5C #9DAF2E #2EAF80
split-complementary
#402EAF #AF802E #5CAF2E
monochromatic
#1D154E #2E217F #402EAF #5D4BD0 #897BDC

Accessibility & contrast

On white

9.43
#402EAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#402EAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402EAF
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402EAF#FFFFFF#000000##FFFFFF
##402EAF1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB3
Deuteranopia (green-blind)
#0041AD
Tritanopia (blue-blind)
#00526C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #402eaf;
/* rgb */ color: rgb(64, 46, 175);
/* oklch */ color: oklch(41.4% 0.193 280.2);
Tailwind
colors: {
  custom: {
    50: '#8369c8',
    500: '#402eaf',
    950: '#000000',
  },
}
SCSS
$custom: #402eaf;
$custom-light: #8369c8;
$custom-dark: #000000;
JSON
{
  "hex": "#402eaf",
  "rgb": {
    "r": 64,
    "g": 46,
    "b": 175
  },
  "hsl": {
    "h": 248.372,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.41414,
    "c": 0.19266,
    "h": 280.2
  },
  "luminance": 0.06139
}

Semantic roles & 50–950 ramp

primary
#402EAF
secondary
#B9C574
accent
#E246CC
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #402EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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