#40294E#40294E

#40294E is a dark, moderate violet. Relative luminance 0.032; OKLCH L 32.6% C 0.069 H 311.7°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#40294E
RGBrgb(64, 41, 78)
HSLhsl(277, 31%, 23%)
HSVhsv(277, 47%, 31%)
CMYKcmyk(17.9%, 47.4%, 0%, 69.4%)
CIE-LABlab(20.93, 18.75, -18.69)
CIE-LCHlch(20.93, 26.47, 315.08°)
OKLaboklab(32.6% 0.0461 -0.0518)
OKLCHoklch(32.6% 0.069 311.7)
XYZxyz(4.2822, 3.2260, 7.6033)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40294E #374E29
analogous
#2D294E #40294E #4E2949
triadic
#40294E #4E4029 #294E40
tetradic
#40294E #4E2D29 #374E29 #29494E
square
#40294E #4E2D29 #374E29 #29494E
split-complementary
#40294E #494E29 #294E2D
monochromatic
#100B14 #1F1426 #40294E #613E76 #82539E

Accessibility & contrast

On white

12.76
#40294E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#40294E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40294E
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40294E#FFFFFF#000000##FFFFFF
##40294E1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21314F
Deuteranopia (green-blind)
#27334D
Tritanopia (blue-blind)
#3F2E37
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #40294e;
/* rgb */ color: rgb(64, 41, 78);
/* oklch */ color: oklch(32.6% 0.069 311.7);
Tailwind
colors: {
  custom: {
    50: '#76637f',
    500: '#40294e',
    950: '#000000',
  },
}
SCSS
$custom: #40294e;
$custom-light: #76637f;
$custom-dark: #000000;
JSON
{
  "hex": "#40294e",
  "rgb": {
    "r": 64,
    "g": 41,
    "b": 78
  },
  "hsl": {
    "h": 277.297,
    "s": 31.092,
    "l": 23.333
  },
  "oklch": {
    "l": 0.32596,
    "c": 0.06939,
    "h": 311.7
  },
  "luminance": 0.03226
}

Semantic roles & 50–950 ramp

primary
#40294E
secondary
#648052
accent
#C76187
background
#F7F5F7
surface
#EDEAEE
border
#C8C6C9
text
#08050A
muted
#7B797C

Preview Lab

Preview with #40294E

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

Preview Lab → · Contrast checker → · Palette generator →

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