#40245D#40245D

#40245D is a dark, moderate violet. Relative luminance 0.031; OKLCH L 32.7% C 0.100 H 304.1°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#40245D
RGBrgb(64, 36, 93)
HSLhsl(269, 44%, 25%)
HSVhsv(269, 61%, 36%)
CMYKcmyk(31.2%, 61.3%, 0%, 63.5%)
CIE-LABlab(20.60, 26.01, -29.22)
CIE-LCHlch(20.60, 39.12, 311.68°)
OKLaboklab(32.66% 0.0558 -0.0825)
OKLCHoklch(32.66% 0.1 304.1)
XYZxyz(4.7206, 3.1421, 10.7116)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40245D #415D24
analogous
#24245D #40245D #5C245D
triadic
#40245D #5D4024 #245D40
tetradic
#40245D #5D2424 #415D24 #245D5C
square
#40245D #5D2424 #415D24 #245D5C
split-complementary
#40245D #5D5C24 #245D24
monochromatic
#0F0916 #221331 #40245D #5E3589 #7D46B5

Accessibility & contrast

On white

12.90
#40245D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#40245D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40245D
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40245D#FFFFFF#000000##FFFFFF
##40245D1.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D315F
Deuteranopia (green-blind)
#18325C
Tritanopia (blue-blind)
#3B2F3C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #40245d;
/* rgb */ color: rgb(64, 36, 93);
/* oklch */ color: oklch(32.7% 0.100 304.1);
Tailwind
colors: {
  custom: {
    50: '#77608b',
    500: '#40245d',
    950: '#000000',
  },
}
SCSS
$custom: #40245d;
$custom-light: #77608b;
$custom-dark: #000000;
JSON
{
  "hex": "#40245d",
  "rgb": {
    "r": 64,
    "g": 36,
    "b": 93
  },
  "hsl": {
    "h": 269.474,
    "s": 44.186,
    "l": 25.294
  },
  "oklch": {
    "l": 0.32657,
    "c": 0.09958,
    "h": 304.1
  },
  "luminance": 0.03142
}

Semantic roles & 50–950 ramp

primary
#40245D
secondary
#6F914C
accent
#D45495
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09050C
muted
#7B797D

Preview Lab

Preview with #40245D

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

Preview Lab → · Contrast checker → · Palette generator →

#40245D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva