#40397D#40397D

#40397D is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.9% C 0.111 H 284.6°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#40397D
RGBrgb(64, 57, 125)
HSLhsl(246, 37%, 36%)
HSVhsv(246, 54%, 49%)
CMYKcmyk(48.8%, 54.4%, 0%, 51%)
CIE-LABlab(28.11, 22.21, -37.79)
CIE-LCHlch(28.11, 43.83, 300.45°)
OKLaboklab(38.92% 0.0281 -0.1076)
OKLCHoklch(38.92% 0.111 284.6)
XYZxyz(7.2781, 5.4966, 20.0755)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40397D #767D39
analogous
#39547D #40397D #62397D
triadic
#40397D #7D4039 #397D40
tetradic
#40397D #7D3954 #767D39 #397D62
square
#40397D #7D3954 #767D39 #397D62
split-complementary
#40397D #7D6239 #547D39
monochromatic
#151329 #2A2653 #40397D #564CA7 #7A72BF

Accessibility & contrast

On white

10.00
#40397D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#40397D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40397D
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40397D#FFFFFF#000000##FFFFFF
##40397D1.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18447F
Deuteranopia (green-blind)
#15407C
Tritanopia (blue-blind)
#2B4855
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #40397d;
/* rgb */ color: rgb(64, 57, 125);
/* oklch */ color: oklch(38.9% 0.111 284.6);
Tailwind
colors: {
  custom: {
    50: '#796fa3',
    500: '#40397d',
    950: '#000000',
  },
}
SCSS
$custom: #40397d;
$custom-light: #796fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#40397d",
  "rgb": {
    "r": 64,
    "g": 57,
    "b": 125
  },
  "hsl": {
    "h": 246.176,
    "s": 37.363,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38919,
    "c": 0.11124,
    "h": 284.6
  },
  "luminance": 0.05497
}

Semantic roles & 50–950 ramp

primary
#40397D
secondary
#A1A86A
accent
#CD5AC2
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#09070F
muted
#7B7A7F

Preview Lab

Preview with #40397D

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

Preview Lab → · Contrast checker → · Palette generator →

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