#40279B#40279B

#40279B is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.5% C 0.176 H 284.4°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#40279B
RGBrgb(64, 39, 155)
HSLhsl(253, 60%, 38%)
HSVhsv(253, 75%, 61%)
CMYKcmyk(58.7%, 74.8%, 0%, 39.2%)
CIE-LABlab(26.47, 42.75, -59.04)
CIE-LCHlch(26.47, 72.89, 305.91°)
OKLaboklab(38.5% 0.0438 -0.17)
OKLCHoklch(38.5% 0.176 284.4)
XYZxyz(8.7545, 4.9070, 31.4898)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40279B #829B27
analogous
#27489B #40279B #7A279B
triadic
#40279B #9B4027 #279B40
tetradic
#40279B #9B2748 #829B27 #279B7A
square
#40279B #9B2748 #829B27 #279B7A
split-complementary
#40279B #9B7A27 #489B27
monochromatic
#180E39 #2C1B6A #40279B #5433CC #7D64D8

Accessibility & contrast

On white

10.60
#40279B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#40279B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40279B
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40279B#FFFFFF#000000##FFFFFF
##40279B1.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429E
Deuteranopia (green-blind)
#003B99
Tritanopia (blue-blind)
#0E475F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #40279b;
/* rgb */ color: rgb(64, 39, 155);
/* oklch */ color: oklch(38.5% 0.176 284.4);
Tailwind
colors: {
  custom: {
    50: '#8064ba',
    500: '#40279b',
    950: '#000000',
  },
}
SCSS
$custom: #40279b;
$custom-light: #8064ba;
$custom-dark: #000000;
JSON
{
  "hex": "#40279b",
  "rgb": {
    "r": 64,
    "g": 39,
    "b": 155
  },
  "hsl": {
    "h": 252.931,
    "s": 59.794,
    "l": 38.039
  },
  "oklch": {
    "l": 0.38498,
    "c": 0.17559,
    "h": 284.4
  },
  "luminance": 0.04908
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #40279B

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

Preview Lab → · Contrast checker → · Palette generator →

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