#40397A#40397A

#40397A is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.7% C 0.107 H 285.2°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#40397A
RGBrgb(64, 57, 122)
HSLhsl(246, 36%, 35%)
HSVhsv(246, 53%, 48%)
CMYKcmyk(47.5%, 53.3%, 0%, 52.2%)
CIE-LABlab(27.90, 21.24, -36.23)
CIE-LCHlch(27.90, 41.99, 300.38°)
OKLaboklab(38.7% 0.0279 -0.103)
OKLCHoklch(38.7% 0.107 285.2)
XYZxyz(7.0893, 5.4211, 19.0814)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40397A #737A39
analogous
#39527A #40397A #61397A
triadic
#40397A #7A4039 #397A40
tetradic
#40397A #7A3952 #737A39 #397A61
square
#40397A #7A3952 #737A39 #397A61
split-complementary
#40397A #7A6139 #527A39
monochromatic
#141227 #2A2650 #40397A #564CA4 #7971BD

Accessibility & contrast

On white

10.08
#40397A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#40397A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40397A
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40397A#FFFFFF#000000##FFFFFF
##40397A1.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B447C
Deuteranopia (green-blind)
#194079
Tritanopia (blue-blind)
#2D4754
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #40397a;
/* rgb */ color: rgb(64, 57, 122);
/* oklch */ color: oklch(38.7% 0.107 285.2);
Tailwind
colors: {
  custom: {
    50: '#796fa1',
    500: '#40397a',
    950: '#000000',
  },
}
SCSS
$custom: #40397a;
$custom-light: #796fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#40397a",
  "rgb": {
    "r": 64,
    "g": 57,
    "b": 122
  },
  "hsl": {
    "h": 246.462,
    "s": 36.313,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38702,
    "c": 0.10674,
    "h": 285.2
  },
  "luminance": 0.05421
}

Semantic roles & 50–950 ramp

primary
#40397A
secondary
#9FA669
accent
#CC5BC0
background
#F7F6F9
surface
#EEECF2
border
#C9C7CC
text
#09070F
muted
#7B7A7E

Preview Lab

Preview with #40397A

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

Preview Lab → · Contrast checker → · Palette generator →

#40397A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva