#40378D#40378D

#40378D is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.8% C 0.137 H 282.9°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#40378D
RGBrgb(64, 55, 141)
HSLhsl(246, 44%, 38%)
HSVhsv(246, 61%, 55%)
CMYKcmyk(54.6%, 61%, 0%, 44.7%)
CIE-LABlab(28.76, 28.78, -46.69)
CIE-LCHlch(28.76, 54.85, 301.65°)
OKLaboklab(39.78% 0.0307 -0.1338)
OKLCHoklch(39.78% 0.137 282.9)
XYZxyz(8.2868, 5.7450, 25.8664)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40378D #848D37
analogous
#37598D #40378D #6B378D
triadic
#40378D #8D4037 #378D40
tetradic
#40378D #8D3759 #848D37 #378D6B
square
#40378D #8D3759 #848D37 #378D6B
split-complementary
#40378D #8D6B37 #598D37
monochromatic
#181535 #2C2661 #40378D #5549B8 #7E75C9

Accessibility & contrast

On white

9.77
#40378D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#40378D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40378D
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40378D#FFFFFF#000000##FFFFFF
##40378D1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004790
Deuteranopia (green-blind)
#00418B
Tritanopia (blue-blind)
#1F4B5C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #40378d;
/* rgb */ color: rgb(64, 55, 141);
/* oklch */ color: oklch(39.8% 0.137 282.9);
Tailwind
colors: {
  custom: {
    50: '#7c6eaf',
    500: '#40378d',
    950: '#000000',
  },
}
SCSS
$custom: #40378d;
$custom-light: #7c6eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#40378d",
  "rgb": {
    "r": 64,
    "g": 55,
    "b": 141
  },
  "hsl": {
    "h": 246.279,
    "s": 43.878,
    "l": 38.431
  },
  "oklch": {
    "l": 0.39775,
    "c": 0.1373,
    "h": 282.9
  },
  "luminance": 0.05745
}

Semantic roles & 50–950 ramp

primary
#40378D
secondary
#ABB26E
accent
#D454C6
background
#F7F6FA
surface
#EEECF5
border
#C9C7CF
text
#0A0710
muted
#7C7A7F

Preview Lab

Preview with #40378D

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

Preview Lab → · Contrast checker → · Palette generator →

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