#40344F#40344F

#40344F is a dark, muted violet. Relative luminance 0.041; OKLCH L 35.0% C 0.048 H 304.4°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#40344F
RGBrgb(64, 52, 79)
HSLhsl(267, 21%, 26%)
HSVhsv(267, 34%, 31%)
CMYKcmyk(19%, 34.2%, 0%, 69%)
CIE-LABlab(24.03, 11.66, -14.53)
CIE-LCHlch(24.03, 18.63, 308.74°)
OKLaboklab(34.97% 0.0273 -0.04)
OKLCHoklch(34.97% 0.048 304.4)
XYZxyz(4.7533, 4.1105, 7.9386)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40344F #434F34
analogous
#34354F #40344F #4D344F
triadic
#40344F #4F4034 #344F40
tetradic
#40344F #4F3435 #434F34 #344F4D
square
#40344F #4F3435 #434F34 #344F4D
split-complementary
#40344F #4F4D34 #354F34
monochromatic
#0F0C12 #221C2A #40344F #5E4C74 #7C6599

Accessibility & contrast

On white

11.53
#40344F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#40344F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40344F
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40344F#FFFFFF#000000##FFFFFF
##40344F1.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F3950
Deuteranopia (green-blind)
#31394E
Tritanopia (blue-blind)
#3E383E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #40344f;
/* rgb */ color: rgb(64, 52, 79);
/* oklch */ color: oklch(35.0% 0.048 304.4);
Tailwind
colors: {
  custom: {
    50: '#756b80',
    500: '#40344f',
    950: '#000000',
  },
}
SCSS
$custom: #40344f;
$custom-light: #756b80;
$custom-dark: #000000;
JSON
{
  "hex": "#40344f",
  "rgb": {
    "r": 64,
    "g": 52,
    "b": 79
  },
  "hsl": {
    "h": 266.667,
    "s": 20.611,
    "l": 25.686
  },
  "oklch": {
    "l": 0.34968,
    "c": 0.04843,
    "h": 304.4
  },
  "luminance": 0.0411
}

Semantic roles & 50–950 ramp

primary
#40344F
secondary
#717F5F
accent
#BD6B98
background
#F7F6F7
surface
#EDEBEE
border
#C8C6C9
text
#08060A
muted
#7B7A7C

Preview Lab

Preview with #40344F

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

Preview Lab → · Contrast checker → · Palette generator →

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