#40249D#40249D

#40249D is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.3% C 0.181 H 284.5°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#40249D
RGBrgb(64, 36, 157)
HSLhsl(254, 63%, 38%)
HSVhsv(254, 77%, 62%)
CMYKcmyk(59.2%, 77.1%, 0%, 38.4%)
CIE-LABlab(26.11, 44.92, -60.84)
CIE-LCHlch(26.11, 75.63, 306.44°)
OKLaboklab(38.31% 0.0455 -0.1753)
OKLCHoklch(38.31% 0.181 284.5)
XYZxyz(8.8292, 4.7855, 32.3502)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40249D #819D24
analogous
#24459D #40249D #7C249D
triadic
#40249D #9D4024 #249D40
tetradic
#40249D #9D2445 #819D24 #249D7C
square
#40249D #9D2445 #819D24 #249D7C
split-complementary
#40249D #9D7C24 #459D24
monochromatic
#170D39 #2C196B #40249D #542FCF #7D61DB

Accessibility & contrast

On white

10.73
#40249D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#40249D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40249D
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40249D#FFFFFF#000000##FFFFFF
##40249D1.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A0
Deuteranopia (green-blind)
#003A9B
Tritanopia (blue-blind)
#09475F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #40249d;
/* rgb */ color: rgb(64, 36, 157);
/* oklch */ color: oklch(38.3% 0.181 284.5);
Tailwind
colors: {
  custom: {
    50: '#8062bb',
    500: '#40249d',
    950: '#000000',
  },
}
SCSS
$custom: #40249d;
$custom-light: #8062bb;
$custom-dark: #000000;
JSON
{
  "hex": "#40249d",
  "rgb": {
    "r": 64,
    "g": 36,
    "b": 157
  },
  "hsl": {
    "h": 253.884,
    "s": 62.694,
    "l": 37.843
  },
  "oklch": {
    "l": 0.38309,
    "c": 0.1811,
    "h": 284.5
  },
  "luminance": 0.04786
}

Semantic roles & 50–950 ramp

primary
#40249D
secondary
#A9C05D
accent
#E642C0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #40249D

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

Preview Lab → · Contrast checker → · Palette generator →

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