#40274A#40274A

#40274A is a dark, moderate purple. Relative luminance 0.030; OKLCH L 32.0% C 0.068 H 315.8°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#40274A
RGBrgb(64, 39, 74)
HSLhsl(283, 31%, 22%)
HSVhsv(283, 47%, 29%)
CMYKcmyk(13.5%, 47.3%, 0%, 71%)
CIE-LABlab(20.19, 19.04, -17.15)
CIE-LCHlch(20.19, 25.62, 317.98°)
OKLaboklab(31.97% 0.0487 -0.0474)
OKLCHoklch(31.97% 0.068 315.8)
XYZxyz(4.0757, 3.0355, 6.8485)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40274A #314A27
analogous
#2F274A #40274A #4A2743
triadic
#40274A #4A4027 #274A40
tetradic
#40274A #4A2F27 #314A27 #27434A
square
#40274A #4A2F27 #314A27 #27434A
split-complementary
#40274A #434A27 #274A2F
monochromatic
#110B14 #1D1222 #40274A #633C72 #85519A

Accessibility & contrast

On white

13.07
#40274A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#40274A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40274A
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40274A#FFFFFF#000000##FFFFFF
##40274A1.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212F4B
Deuteranopia (green-blind)
#273149
Tritanopia (blue-blind)
#402C35
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #40274a;
/* rgb */ color: rgb(64, 39, 74);
/* oklch */ color: oklch(32.0% 0.068 315.8);
Tailwind
colors: {
  custom: {
    50: '#75627c',
    500: '#40274a',
    950: '#000000',
  },
}
SCSS
$custom: #40274a;
$custom-light: #75627c;
$custom-dark: #000000;
JSON
{
  "hex": "#40274a",
  "rgb": {
    "r": 64,
    "g": 39,
    "b": 74
  },
  "hsl": {
    "h": 282.857,
    "s": 30.973,
    "l": 22.157
  },
  "oklch": {
    "l": 0.31969,
    "c": 0.06796,
    "h": 315.8
  },
  "luminance": 0.03035
}

Semantic roles & 50–950 ramp

primary
#40274A
secondary
#5D7D50
accent
#C7617E
background
#F7F5F7
surface
#EDEAEE
border
#C8C6C9
text
#080509
muted
#7B797B

Preview Lab

Preview with #40274A

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

Preview Lab → · Contrast checker → · Palette generator →

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