#40249F#40249F

#40249F is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.5% C 0.183 H 284.2°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#40249F
RGBrgb(64, 36, 159)
HSLhsl(254, 63%, 38%)
HSVhsv(254, 77%, 62%)
CMYKcmyk(59.7%, 77.4%, 0%, 37.6%)
CIE-LABlab(26.32, 45.51, -61.73)
CIE-LCHlch(26.32, 76.70, 306.40°)
OKLaboklab(38.51% 0.0449 -0.1779)
OKLCHoklch(38.51% 0.183 284.2)
XYZxyz(9.0013, 4.8544, 33.2568)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40249F #839F24
analogous
#24459F #40249F #7E249F
triadic
#40249F #9F4024 #249F40
tetradic
#40249F #9F2445 #839F24 #249F7E
square
#40249F #9F2445 #839F24 #249F7E
split-complementary
#40249F #9F7E24 #459F24
monochromatic
#180D3B #2C196D #40249F #5430D0 #7E62DB

Accessibility & contrast

On white

10.65
#40249F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#40249F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40249F
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40249F#FFFFFF#000000##FFFFFF
##40249F1.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A2
Deuteranopia (green-blind)
#003A9D
Tritanopia (blue-blind)
#034760
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #40249f;
/* rgb */ color: rgb(64, 36, 159);
/* oklch */ color: oklch(38.5% 0.183 284.2);
Tailwind
colors: {
  custom: {
    50: '#8163bd',
    500: '#40249f',
    950: '#000000',
  },
}
SCSS
$custom: #40249f;
$custom-light: #8163bd;
$custom-dark: #000000;
JSON
{
  "hex": "#40249f",
  "rgb": {
    "r": 64,
    "g": 36,
    "b": 159
  },
  "hsl": {
    "h": 253.659,
    "s": 63.077,
    "l": 38.235
  },
  "oklch": {
    "l": 0.3851,
    "c": 0.18348,
    "h": 284.2
  },
  "luminance": 0.04855
}

Semantic roles & 50–950 ramp

primary
#40249F
secondary
#AAC15E
accent
#E642C1
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #40249F

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

Preview Lab → · Contrast checker → · Palette generator →

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