#403979#403979

#403979 is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.6% C 0.105 H 285.3°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#403979
RGBrgb(64, 57, 121)
HSLhsl(247, 36%, 35%)
HSVhsv(247, 53%, 47%)
CMYKcmyk(47.1%, 52.9%, 0%, 52.5%)
CIE-LABlab(27.84, 20.91, -35.70)
CIE-LCHlch(27.84, 41.38, 300.36°)
OKLaboklab(38.63% 0.0278 -0.1015)
OKLCHoklch(38.63% 0.105 285.3)
XYZxyz(7.0277, 5.3964, 18.7568)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403979 #727939
analogous
#395279 #403979 #603979
triadic
#403979 #794039 #397940
tetradic
#403979 #793952 #727939 #397960
square
#403979 #793952 #727939 #397960
split-complementary
#403979 #796039 #527939
monochromatic
#141226 #2A254F #403979 #564DA3 #7971BC

Accessibility & contrast

On white

10.10
#403979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#403979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403979
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403979#FFFFFF#000000##FFFFFF
##4039791.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C447B
Deuteranopia (green-blind)
#1A4078
Tritanopia (blue-blind)
#2E4753
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #403979;
/* rgb */ color: rgb(64, 57, 121);
/* oklch */ color: oklch(38.6% 0.105 285.3);
Tailwind
colors: {
  custom: {
    50: '#796fa0',
    500: '#403979',
    950: '#000000',
  },
}
SCSS
$custom: #403979;
$custom-light: #796fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#403979",
  "rgb": {
    "r": 64,
    "g": 57,
    "b": 121
  },
  "hsl": {
    "h": 246.563,
    "s": 35.955,
    "l": 34.902
  },
  "oklch": {
    "l": 0.3863,
    "c": 0.10524,
    "h": 285.3
  },
  "luminance": 0.05397
}

Semantic roles & 50–950 ramp

primary
#403979
secondary
#9FA569
accent
#CC5CC0
background
#F7F6F9
surface
#EEECF2
border
#C9C7CC
text
#09070F
muted
#7B7A7E

Preview Lab

Preview with #403979

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

Preview Lab → · Contrast checker → · Palette generator →

#403979 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva