#40344E#40344E

#40344E is a dark, muted violet. Relative luminance 0.041; OKLCH L 34.9% C 0.047 H 305.2°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#40344E
RGBrgb(64, 52, 78)
HSLhsl(268, 20%, 25%)
HSVhsv(268, 33%, 31%)
CMYKcmyk(17.9%, 33.3%, 0%, 69.4%)
CIE-LABlab(23.99, 11.39, -13.94)
CIE-LCHlch(23.99, 18.00, 309.26°)
OKLaboklab(34.92% 0.027 -0.0383)
OKLCHoklch(34.92% 0.047 305.2)
XYZxyz(4.7172, 4.0960, 7.7484)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40344E #424E34
analogous
#34354E #40344E #4D344E
triadic
#40344E #4E4034 #344E40
tetradic
#40344E #4E3435 #424E34 #344E4D
square
#40344E #4E3435 #424E34 #344E4D
split-complementary
#40344E #4E4D34 #354E34
monochromatic
#0F0C12 #221C29 #40344E #5E4C73 #7C6597

Accessibility & contrast

On white

11.54
#40344E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40344E
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40344E#FFFFFF#000000##FFFFFF
##40344E1.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F394F
Deuteranopia (green-blind)
#31394D
Tritanopia (blue-blind)
#3E383D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #40344e;
/* rgb */ color: rgb(64, 52, 78);
/* oklch */ color: oklch(34.9% 0.047 305.2);
Tailwind
colors: {
  custom: {
    50: '#756b7f',
    500: '#40344e',
    950: '#000000',
  },
}
SCSS
$custom: #40344e;
$custom-light: #756b7f;
$custom-dark: #000000;
JSON
{
  "hex": "#40344e",
  "rgb": {
    "r": 64,
    "g": 52,
    "b": 78
  },
  "hsl": {
    "h": 267.692,
    "s": 20,
    "l": 25.49
  },
  "oklch": {
    "l": 0.34917,
    "c": 0.04686,
    "h": 305.2
  },
  "luminance": 0.04096
}

Semantic roles & 50–950 ramp

primary
#40344E
secondary
#707E5F
accent
#BD6B97
background
#F7F6F7
surface
#EDEBEE
border
#C8C6C9
text
#08060A
muted
#7B7A7C

Preview Lab

Preview with #40344E

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

Preview Lab → · Contrast checker → · Palette generator →

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