#40296F#40296F

#40296F is a dark, moderate violet. Relative luminance 0.038; OKLCH L 34.9% C 0.116 H 294.8°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#40296F
RGBrgb(64, 41, 111)
HSLhsl(260, 46%, 30%)
HSVhsv(260, 63%, 44%)
CMYKcmyk(42.3%, 63.1%, 0%, 56.5%)
CIE-LABlab(23.08, 28.13, -36.98)
CIE-LCHlch(23.08, 46.47, 307.26°)
OKLaboklab(34.88% 0.0487 -0.1053)
OKLCHoklch(34.88% 0.116 294.8)
XYZxyz(5.7758, 3.8234, 15.4695)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40296F #586F29
analogous
#29356F #40296F #63296F
triadic
#40296F #6F4029 #296F40
tetradic
#40296F #6F2935 #586F29 #296F63
square
#40296F #6F2935 #586F29 #296F63
split-complementary
#40296F #6F6329 #356F29
monochromatic
#0D0816 #261842 #40296F #5A3A9C #7753BF

Accessibility & contrast

On white

11.90
#40296F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#40296F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40296F
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40296F#FFFFFF#000000##FFFFFF
##40296F1.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003871
Deuteranopia (green-blind)
#06366D
Tritanopia (blue-blind)
#343847
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #40296f;
/* rgb */ color: rgb(64, 41, 111);
/* oklch */ color: oklch(34.9% 0.116 294.8);
Tailwind
colors: {
  custom: {
    50: '#796499',
    500: '#40296f',
    950: '#000000',
  },
}
SCSS
$custom: #40296f;
$custom-light: #796499;
$custom-dark: #000000;
JSON
{
  "hex": "#40296f",
  "rgb": {
    "r": 64,
    "g": 41,
    "b": 111
  },
  "hsl": {
    "h": 259.714,
    "s": 46.053,
    "l": 29.804
  },
  "oklch": {
    "l": 0.34883,
    "c": 0.116,
    "h": 294.8
  },
  "luminance": 0.03824
}

Semantic roles & 50–950 ramp

primary
#40296F
secondary
#87A153
accent
#D652AA
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#09050E
muted
#7B7A7E

Preview Lab

Preview with #40296F

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

Preview Lab → · Contrast checker → · Palette generator →

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