#40279C#40279C

#40279C is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.177 H 284.2°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#40279C
RGBrgb(64, 39, 156)
HSLhsl(253, 60%, 38%)
HSVhsv(253, 75%, 61%)
CMYKcmyk(59%, 75%, 0%, 38.8%)
CIE-LABlab(26.57, 43.06, -59.49)
CIE-LCHlch(26.57, 73.44, 305.89°)
OKLaboklab(38.6% 0.0435 -0.1714)
OKLCHoklch(38.6% 0.177 284.2)
XYZxyz(8.8388, 4.9408, 31.9340)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40279C #839C27
analogous
#27489C #40279C #7B279C
triadic
#40279C #9C4027 #279C40
tetradic
#40279C #9C2748 #839C27 #279C7B
square
#40279C #9C2748 #839C27 #279C7B
split-complementary
#40279C #9C7B27 #489C27
monochromatic
#180F3A #2C1B6B #40279C #5434CC #7E65D8

Accessibility & contrast

On white

10.56
#40279C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#40279C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40279C
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40279C#FFFFFF#000000##FFFFFF
##40279C1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#003B9A
Tritanopia (blue-blind)
#0B485F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #40279c;
/* rgb */ color: rgb(64, 39, 156);
/* oklch */ color: oklch(38.6% 0.177 284.2);
Tailwind
colors: {
  custom: {
    50: '#8064ba',
    500: '#40279c',
    950: '#000000',
  },
}
SCSS
$custom: #40279c;
$custom-light: #8064ba;
$custom-dark: #000000;
JSON
{
  "hex": "#40279c",
  "rgb": {
    "r": 64,
    "g": 39,
    "b": 156
  },
  "hsl": {
    "h": 252.821,
    "s": 60,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38596,
    "c": 0.17681,
    "h": 284.2
  },
  "luminance": 0.04941
}

Semantic roles & 50–950 ramp

primary
#40279C
secondary
#AABE61
accent
#E345C1
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #40279C

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

Preview Lab → · Contrast checker → · Palette generator →

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