#40378E#40378E

#40378E is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.9% C 0.139 H 282.8°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#40378E
RGBrgb(64, 55, 142)
HSLhsl(246, 44%, 39%)
HSVhsv(246, 61%, 56%)
CMYKcmyk(54.9%, 61.3%, 0%, 44.3%)
CIE-LABlab(28.84, 29.11, -47.19)
CIE-LCHlch(28.84, 55.44, 301.67°)
OKLaboklab(39.86% 0.0307 -0.1353)
OKLCHoklch(39.86% 0.139 282.8)
XYZxyz(8.3615, 5.7749, 26.2600)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40378E #858E37
analogous
#37598E #40378E #6B378E
triadic
#40378E #8E4037 #378E40
tetradic
#40378E #8E3759 #858E37 #378E6B
square
#40378E #8E3759 #858E37 #378E6B
split-complementary
#40378E #8E6B37 #598E37
monochromatic
#181536 #2C2662 #40378E #5549B9 #7E76CA

Accessibility & contrast

On white

9.74
#40378E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#40378E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40378E
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40378E#FFFFFF#000000##FFFFFF
##40378E1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004791
Deuteranopia (green-blind)
#00418C
Tritanopia (blue-blind)
#1E4C5D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #40378e;
/* rgb */ color: rgb(64, 55, 142);
/* oklch */ color: oklch(39.9% 0.139 282.8);
Tailwind
colors: {
  custom: {
    50: '#7c6eb0',
    500: '#40378e',
    950: '#000000',
  },
}
SCSS
$custom: #40378e;
$custom-light: #7c6eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#40378e",
  "rgb": {
    "r": 64,
    "g": 55,
    "b": 142
  },
  "hsl": {
    "h": 246.207,
    "s": 44.162,
    "l": 38.627
  },
  "oklch": {
    "l": 0.39856,
    "c": 0.13871,
    "h": 282.8
  },
  "luminance": 0.05775
}

Semantic roles & 50–950 ramp

primary
#40378E
secondary
#ACB36E
accent
#D454C7
background
#F7F6FA
surface
#EEECF5
border
#C9C7CF
text
#0A0710
muted
#7C7A7F

Preview Lab

Preview with #40378E

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

Preview Lab → · Contrast checker → · Palette generator →

#40378E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva