#40246B#40246B

#40246B is a dark, moderate violet. Relative luminance 0.034; OKLCH L 33.7% C 0.118 H 297.9°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#40246B
RGBrgb(64, 36, 107)
HSLhsl(264, 50%, 28%)
HSVhsv(264, 66%, 42%)
CMYKcmyk(40.2%, 66.4%, 0%, 58%)
CIE-LABlab(21.63, 30.01, -36.74)
CIE-LCHlch(21.63, 47.44, 309.24°)
OKLaboklab(33.73% 0.0553 -0.1046)
OKLCHoklch(33.73% 0.118 297.9)
XYZxyz(5.3984, 3.4132, 14.2815)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40246B #4F6B24
analogous
#242B6B #40246B #63246B
triadic
#40246B #6B4024 #246B40
tetradic
#40246B #6B242B #4F6B24 #246B63
square
#40246B #6B242B #4F6B24 #246B63
split-complementary
#40246B #6B6324 #2B6B24
monochromatic
#0E0817 #25153D #40246B #5B3399 #7848C1

Accessibility & contrast

On white

12.48
#40246B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#40246B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40246B
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40246B#FFFFFF#000000##FFFFFF
##40246B1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346D
Deuteranopia (green-blind)
#023369
Tritanopia (blue-blind)
#363444
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #40246b;
/* rgb */ color: rgb(64, 36, 107);
/* oklch */ color: oklch(33.7% 0.118 297.9);
Tailwind
colors: {
  custom: {
    50: '#796096',
    500: '#40246b',
    950: '#000000',
  },
}
SCSS
$custom: #40246b;
$custom-light: #796096;
$custom-dark: #000000;
JSON
{
  "hex": "#40246b",
  "rgb": {
    "r": 64,
    "g": 36,
    "b": 107
  },
  "hsl": {
    "h": 263.662,
    "s": 49.65,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33731,
    "c": 0.11832,
    "h": 297.9
  },
  "luminance": 0.03413
}

Semantic roles & 50–950 ramp

primary
#40246B
secondary
#7E9E4D
accent
#D94FA3
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09050D
muted
#7B797E

Preview Lab

Preview with #40246B

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

Preview Lab → · Contrast checker → · Palette generator →

#40246B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva