#40289C#40289C

#40289C is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.7% C 0.176 H 284.1°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#40289C
RGBrgb(64, 40, 156)
HSLhsl(252, 59%, 38%)
HSVhsv(252, 74%, 61%)
CMYKcmyk(59%, 74.4%, 0%, 38.8%)
CIE-LABlab(26.76, 42.52, -59.18)
CIE-LCHlch(26.76, 72.87, 305.70°)
OKLaboklab(38.73% 0.0428 -0.1705)
OKLCHoklch(38.73% 0.176 284.1)
XYZxyz(8.8721, 5.0073, 31.9450)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40289C #849C28
analogous
#284A9C #40289C #7A289C
triadic
#40289C #9C4028 #289C40
tetradic
#40289C #9C284A #849C28 #289C7A
square
#40289C #9C284A #849C28 #289C7A
split-complementary
#40289C #9C7A28 #4A9C28
monochromatic
#180F3B #2C1C6B #40289C #5536CB #7E67D8

Accessibility & contrast

On white

10.49
#40289C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#40289C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40289C
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40289C#FFFFFF#000000##FFFFFF
##40289C1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40289c;
/* rgb */ color: rgb(64, 40, 156);
/* oklch */ color: oklch(38.7% 0.176 284.1);
Tailwind
colors: {
  custom: {
    50: '#8065ba',
    500: '#40289c',
    950: '#000000',
  },
}
SCSS
$custom: #40289c;
$custom-light: #8065ba;
$custom-dark: #000000;
JSON
{
  "hex": "#40289c",
  "rgb": {
    "r": 64,
    "g": 40,
    "b": 156
  },
  "hsl": {
    "h": 252.414,
    "s": 59.184,
    "l": 38.431
  },
  "oklch": {
    "l": 0.3873,
    "c": 0.17574,
    "h": 284.1
  },
  "luminance": 0.05008
}

Semantic roles & 50–950 ramp

primary
#40289C
secondary
#ABBE62
accent
#E245C2
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #40289C

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

Preview Lab → · Contrast checker → · Palette generator →

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