#40248D#40248D

#40248D is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.7% C 0.162 H 287.9°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#40248D
RGBrgb(64, 36, 141)
HSLhsl(256, 59%, 35%)
HSVhsv(256, 74%, 55%)
CMYKcmyk(54.6%, 74.5%, 0%, 44.7%)
CIE-LABlab(24.56, 40.13, -53.55)
CIE-LCHlch(24.56, 66.91, 306.85°)
OKLaboklab(36.74% 0.0496 -0.1539)
OKLCHoklch(36.74% 0.162 287.9)
XYZxyz(7.5515, 4.2745, 25.6213)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40248D #718D24
analogous
#243D8D #40248D #75248D
triadic
#40248D #8D4024 #248D40
tetradic
#40248D #8D243D #718D24 #248D75
square
#40248D #8D243D #718D24 #248D75
split-complementary
#40248D #8D7524 #3D8D24
monochromatic
#140B2B #2A185C #40248D #5630BE #7957D4

Accessibility & contrast

On white

11.32
#40248D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#40248D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40248D
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40248D#FFFFFF#000000##FFFFFF
##40248D1.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#00378B
Tritanopia (blue-blind)
#214056
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #40248d;
/* rgb */ color: rgb(64, 36, 141);
/* oklch */ color: oklch(36.7% 0.162 287.9);
Tailwind
colors: {
  custom: {
    50: '#7d62af',
    500: '#40248d',
    950: '#000000',
  },
}
SCSS
$custom: #40248d;
$custom-light: #7d62af;
$custom-dark: #000000;
JSON
{
  "hex": "#40248d",
  "rgb": {
    "r": 64,
    "g": 36,
    "b": 141
  },
  "hsl": {
    "h": 256,
    "s": 59.322,
    "l": 34.706
  },
  "oklch": {
    "l": 0.3674,
    "c": 0.16173,
    "h": 287.9
  },
  "luminance": 0.04275
}

Semantic roles & 50–950 ramp

primary
#40248D
secondary
#9EB854
accent
#E345B9
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #40248D

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

Preview Lab → · Contrast checker → · Palette generator →

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