#40248F#40248F

#40248F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.9% C 0.164 H 287.4°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#40248F
RGBrgb(64, 36, 143)
HSLhsl(256, 60%, 35%)
HSVhsv(256, 75%, 56%)
CMYKcmyk(55.2%, 74.8%, 0%, 43.9%)
CIE-LABlab(24.75, 40.73, -54.48)
CIE-LCHlch(24.75, 68.02, 306.78°)
OKLaboklab(36.93% 0.0491 -0.1567)
OKLCHoklch(36.93% 0.164 287.4)
XYZxyz(7.7017, 4.3345, 26.4121)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40248F #738F24
analogous
#243D8F #40248F #76248F
triadic
#40248F #8F4024 #248F40
tetradic
#40248F #8F243D #738F24 #248F76
square
#40248F #8F243D #738F24 #248F76
split-complementary
#40248F #8F7624 #3D8F24
monochromatic
#140B2D #2A185E #40248F #5630C0 #7958D5

Accessibility & contrast

On white

11.25
#40248F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#40248F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40248F
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40248F#FFFFFF#000000##FFFFFF
##40248F1.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#1F4157
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #40248f;
/* rgb */ color: rgb(64, 36, 143);
/* oklch */ color: oklch(36.9% 0.164 287.4);
Tailwind
colors: {
  custom: {
    50: '#7e62b1',
    500: '#40248f',
    950: '#000000',
  },
}
SCSS
$custom: #40248f;
$custom-light: #7e62b1;
$custom-dark: #000000;
JSON
{
  "hex": "#40248f",
  "rgb": {
    "r": 64,
    "g": 36,
    "b": 143
  },
  "hsl": {
    "h": 255.701,
    "s": 59.777,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36932,
    "c": 0.16418,
    "h": 287.4
  },
  "luminance": 0.04335
}

Semantic roles & 50–950 ramp

primary
#40248F
secondary
#9FB955
accent
#E345BA
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #40248F

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

Preview Lab → · Contrast checker → · Palette generator →

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