#40389F#40389F

#40389F is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.5% C 0.161 H 280.2°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#40389F
RGBrgb(64, 56, 159)
HSLhsl(245, 48%, 42%)
HSVhsv(245, 65%, 62%)
CMYKcmyk(59.7%, 64.8%, 0%, 37.6%)
CIE-LABlab(30.45, 34.12, -54.95)
CIE-LCHlch(30.45, 64.68, 301.83°)
OKLaboklab(41.47% 0.0286 -0.1581)
OKLCHoklch(41.47% 0.161 280.2)
XYZxyz(9.7846, 6.4209, 33.5179)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40389F #979F38
analogous
#38649F #40389F #74389F
triadic
#40389F #9F4038 #389F40
tetradic
#40389F #9F3864 #979F38 #389F74
square
#40389F #9F3864 #979F38 #389F74
split-complementary
#40389F #9F7438 #649F38
monochromatic
#1C1844 #2E2872 #40389F #5B52C2 #867FD2

Accessibility & contrast

On white

9.19
#40389F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40389F
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40389F#FFFFFF#000000##FFFFFF
##40389F1.009.192.289.19
#FFFFFF9.191.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA2
Deuteranopia (green-blind)
#00449D
Tritanopia (blue-blind)
#005266
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #40389f;
/* rgb */ color: rgb(64, 56, 159);
/* oklch */ color: oklch(41.5% 0.161 280.2);
Tailwind
colors: {
  custom: {
    50: '#7f6fbc',
    500: '#40389f',
    950: '#000000',
  },
}
SCSS
$custom: #40389f;
$custom-light: #7f6fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#40389f",
  "rgb": {
    "r": 64,
    "g": 56,
    "b": 159
  },
  "hsl": {
    "h": 244.66,
    "s": 47.907,
    "l": 42.157
  },
  "oklch": {
    "l": 0.41467,
    "c": 0.16066,
    "h": 280.2
  },
  "luminance": 0.06422
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #40389F

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

Preview Lab → · Contrast checker → · Palette generator →

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