#40279A#40279A

#40279A is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.4% C 0.174 H 284.6°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#40279A
RGBrgb(64, 39, 154)
HSLhsl(253, 60%, 38%)
HSVhsv(253, 75%, 60%)
CMYKcmyk(58.4%, 74.7%, 0%, 39.6%)
CIE-LABlab(26.37, 42.45, -58.59)
CIE-LCHlch(26.37, 72.35, 305.92°)
OKLaboklab(38.4% 0.044 -0.1687)
OKLCHoklch(38.4% 0.174 284.6)
XYZxyz(8.6708, 4.8736, 31.0494)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40279A #819A27
analogous
#27489A #40279A #79279A
triadic
#40279A #9A4027 #279A40
tetradic
#40279A #9A2748 #819A27 #279A79
square
#40279A #9A2748 #819A27 #279A79
split-complementary
#40279A #9A7927 #489A27
monochromatic
#170E38 #2C1B69 #40279A #5433CB #7D64D8

Accessibility & contrast

On white

10.63
#40279A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#40279A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40279A
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40279A#FFFFFF#000000##FFFFFF
##40279A1.0010.631.9710.63
#FFFFFF10.631.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429D
Deuteranopia (green-blind)
#003B98
Tritanopia (blue-blind)
#10475E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #40279a;
/* rgb */ color: rgb(64, 39, 154);
/* oklch */ color: oklch(38.4% 0.174 284.6);
Tailwind
colors: {
  custom: {
    50: '#8064b9',
    500: '#40279a',
    950: '#000000',
  },
}
SCSS
$custom: #40279a;
$custom-light: #8064b9;
$custom-dark: #000000;
JSON
{
  "hex": "#40279a",
  "rgb": {
    "r": 64,
    "g": 39,
    "b": 154
  },
  "hsl": {
    "h": 253.043,
    "s": 59.585,
    "l": 37.843
  },
  "oklch": {
    "l": 0.384,
    "c": 0.17437,
    "h": 284.6
  },
  "luminance": 0.04874
}

Semantic roles & 50–950 ramp

primary
#40279A
secondary
#A9BD5F
accent
#E345C0
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #40279A

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

Preview Lab → · Contrast checker → · Palette generator →

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