#40304E#40304E

#40304E is a dark, muted violet. Relative luminance 0.038; OKLCH L 34.0% C 0.055 H 308.1°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#40304E
RGBrgb(64, 48, 78)
HSLhsl(272, 24%, 25%)
HSVhsv(272, 38%, 31%)
CMYKcmyk(17.9%, 38.5%, 0%, 69.4%)
CIE-LABlab(22.84, 14.08, -15.71)
CIE-LCHlch(22.84, 21.10, 311.87°)
OKLaboklab(34.04% 0.034 -0.0433)
OKLCHoklch(34.04% 0.055 308.1)
XYZxyz(4.5462, 3.7540, 7.6913)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40304E #3E4E30
analogous
#31304E #40304E #4E304D
triadic
#40304E #4E4030 #304E40
tetradic
#40304E #4E3130 #3E4E30 #304D4E
square
#40304E #4E3130 #3E4E30 #304D4E
split-complementary
#40304E #4D4E30 #304E31
monochromatic
#100C13 #211928 #40304E #5F4774 #7E5F9A

Accessibility & contrast

On white

11.99
#40304E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#40304E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40304E
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40304E#FFFFFF#000000##FFFFFF
##40304E1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A364F
Deuteranopia (green-blind)
#2E374D
Tritanopia (blue-blind)
#3E343B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #40304e;
/* rgb */ color: rgb(64, 48, 78);
/* oklch */ color: oklch(34.0% 0.055 308.1);
Tailwind
colors: {
  custom: {
    50: '#75687f',
    500: '#40304e',
    950: '#000000',
  },
}
SCSS
$custom: #40304e;
$custom-light: #75687f;
$custom-dark: #000000;
JSON
{
  "hex": "#40304e",
  "rgb": {
    "r": 64,
    "g": 48,
    "b": 78
  },
  "hsl": {
    "h": 272,
    "s": 23.81,
    "l": 24.706
  },
  "oklch": {
    "l": 0.34043,
    "c": 0.05508,
    "h": 308.1
  },
  "luminance": 0.03754
}

Semantic roles & 50–950 ramp

primary
#40304E
secondary
#6C7F5B
accent
#C06891
background
#F7F6F7
surface
#EDEBEE
border
#C8C6C9
text
#08060A
muted
#7B7A7C

Preview Lab

Preview with #40304E

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

Preview Lab → · Contrast checker → · Palette generator →

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