#40418F#40418F

#40418F is a dark, vivid blue. Relative luminance 0.069; OKLCH L 41.8% C 0.126 H 278.9°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#40418F
RGBrgb(64, 65, 143)
HSLhsl(239, 38%, 41%)
HSVhsv(239, 55%, 56%)
CMYKcmyk(55.2%, 54.5%, 0%, 43.9%)
CIE-LABlab(31.47, 22.95, -43.54)
CIE-LCHlch(31.47, 49.22, 297.80°)
OKLaboklab(41.83% 0.0195 -0.1245)
OKLCHoklch(41.83% 0.126 278.9)
XYZxyz(8.9610, 6.8532, 26.8319)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40418F #8F8E40
analogous
#40688F #40418F #67408F
triadic
#40418F #8F4041 #418F40
tetradic
#40418F #8F4068 #8F8E40 #408F67
square
#40418F #8F4068 #8F8E40 #408F67
split-complementary
#40418F #8F6740 #688F40
monochromatic
#1A1B3A #2D2E65 #40418F #5859B4 #8283C7

Accessibility & contrast

On white

8.86
#40418F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#40418F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40418F
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40418F#FFFFFF#000000##FFFFFF
##40418F1.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144D92
Deuteranopia (green-blind)
#06478D
Tritanopia (blue-blind)
#1B5361
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #40418f;
/* rgb */ color: rgb(64, 65, 143);
/* oklch */ color: oklch(41.8% 0.126 278.9);
Tailwind
colors: {
  custom: {
    50: '#7c75b0',
    500: '#40418f',
    950: '#000000',
  },
}
SCSS
$custom: #40418f;
$custom-light: #7c75b0;
$custom-dark: #000000;
JSON
{
  "hex": "#40418f",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 143
  },
  "hsl": {
    "h": 239.241,
    "s": 38.164,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41833,
    "c": 0.12601,
    "h": 278.9
  },
  "luminance": 0.06854
}

Semantic roles & 50–950 ramp

primary
#40418F
secondary
#B2B179
accent
#CD5ACE
background
#F7F7FA
surface
#EEEDF5
border
#C9C8CF
text
#0A0810
muted
#7C7B7F

Preview Lab

Preview with #40418F

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

Preview Lab → · Contrast checker → · Palette generator →

#40418F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva