#40389E#40389E

#40389E is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.4% C 0.159 H 280.4°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#40389E
RGBrgb(64, 56, 158)
HSLhsl(245, 48%, 42%)
HSVhsv(245, 65%, 62%)
CMYKcmyk(59.5%, 64.6%, 0%, 38%)
CIE-LABlab(30.37, 33.79, -54.49)
CIE-LCHlch(30.37, 64.11, 301.80°)
OKLaboklab(41.38% 0.0287 -0.1567)
OKLCHoklch(41.38% 0.159 280.4)
XYZxyz(9.6981, 6.3863, 33.0628)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40389E #969E38
analogous
#38639E #40389E #73389E
triadic
#40389E #9E4038 #389E40
tetradic
#40389E #9E3863 #969E38 #389E73
square
#40389E #9E3863 #969E38 #389E73
split-complementary
#40389E #9E7338 #639E38
monochromatic
#1B1844 #2E2871 #40389E #5A52C2 #857FD2

Accessibility & contrast

On white

9.22
#40389E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#40389E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40389E
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40389E#FFFFFF#000000##FFFFFF
##40389E1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA1
Deuteranopia (green-blind)
#00449C
Tritanopia (blue-blind)
#015165
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #40389e;
/* rgb */ color: rgb(64, 56, 158);
/* oklch */ color: oklch(41.4% 0.159 280.4);
Tailwind
colors: {
  custom: {
    50: '#7f6fbb',
    500: '#40389e',
    950: '#000000',
  },
}
SCSS
$custom: #40389e;
$custom-light: #7f6fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#40389e",
  "rgb": {
    "r": 64,
    "g": 56,
    "b": 158
  },
  "hsl": {
    "h": 244.706,
    "s": 47.664,
    "l": 41.961
  },
  "oklch": {
    "l": 0.4138,
    "c": 0.15932,
    "h": 280.4
  },
  "luminance": 0.06387
}

Semantic roles & 50–950 ramp

primary
#40389E
secondary
#B6BB77
accent
#D751CD
background
#F8F6FB
surface
#EFECF6
border
#CAC7D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #40389E

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

Preview Lab → · Contrast checker → · Palette generator →

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