#40296C#40296C

#40296C is a dark, moderate violet. Relative luminance 0.038; OKLCH L 34.6% C 0.112 H 295.8°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#40296C
RGBrgb(64, 41, 108)
HSLhsl(261, 45%, 29%)
HSVhsv(261, 62%, 42%)
CMYKcmyk(40.7%, 62%, 0%, 57.6%)
CIE-LABlab(22.86, 27.23, -35.41)
CIE-LCHlch(22.86, 44.67, 307.56°)
OKLaboklab(34.65% 0.0488 -0.1007)
OKLCHoklch(34.65% 0.112 295.8)
XYZxyz(5.6134, 3.7585, 14.6142)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40296C #556C29
analogous
#29346C #40296C #62296C
triadic
#40296C #6C4029 #296C40
tetradic
#40296C #6C2934 #556C29 #296C62
square
#40296C #6C2934 #556C29 #296C62
split-complementary
#40296C #6C6229 #346C29
monochromatic
#0D0816 #261840 #40296C #5A3A98 #7752BD

Accessibility & contrast

On white

11.99
#40296C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#40296C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40296C
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40296C#FFFFFF#000000##FFFFFF
##40296C1.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)
#01376E
Deuteranopia (green-blind)
#0C366B
Tritanopia (blue-blind)
#353746
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #40296c;
/* rgb */ color: rgb(64, 41, 108);
/* oklch */ color: oklch(34.6% 0.112 295.8);
Tailwind
colors: {
  custom: {
    50: '#786497',
    500: '#40296c',
    950: '#000000',
  },
}
SCSS
$custom: #40296c;
$custom-light: #786497;
$custom-dark: #000000;
JSON
{
  "hex": "#40296c",
  "rgb": {
    "r": 64,
    "g": 41,
    "b": 108
  },
  "hsl": {
    "h": 260.597,
    "s": 44.966,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3465,
    "c": 0.11185,
    "h": 295.8
  },
  "luminance": 0.03759
}

Semantic roles & 50–950 ramp

primary
#40296C
secondary
#849E53
accent
#D553A8
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#09050D
muted
#7B7A7E

Preview Lab

Preview with #40296C

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

Preview Lab → · Contrast checker → · Palette generator →

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