#40299D#40299D

#40299D is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.0% C 0.176 H 283.7°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#40299D
RGBrgb(64, 41, 157)
HSLhsl(252, 59%, 39%)
HSVhsv(252, 74%, 62%)
CMYKcmyk(59.2%, 73.9%, 0%, 38.4%)
CIE-LABlab(27.04, 42.28, -59.31)
CIE-LCHlch(27.04, 72.84, 305.48°)
OKLaboklab(38.96% 0.0418 -0.1709)
OKLCHoklch(38.96% 0.176 283.7)
XYZxyz(8.9912, 5.1096, 32.4042)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40299D #869D29
analogous
#294C9D #40299D #7A299D
triadic
#40299D #9D4029 #299D40
tetradic
#40299D #9D294C #869D29 #299D7A
square
#40299D #9D294C #869D29 #299D7A
split-complementary
#40299D #9D7A29 #4C9D29
monochromatic
#18103C #2C1C6C #40299D #5538CB #7F69D8

Accessibility & contrast

On white

10.39
#40299D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#40299D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40299D
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40299D#FFFFFF#000000##FFFFFF
##40299D1.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A0
Deuteranopia (green-blind)
#003C9B
Tritanopia (blue-blind)
#084960
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #40299d;
/* rgb */ color: rgb(64, 41, 157);
/* oklch */ color: oklch(39.0% 0.176 283.7);
Tailwind
colors: {
  custom: {
    50: '#8065bb',
    500: '#40299d',
    950: '#000000',
  },
}
SCSS
$custom: #40299d;
$custom-light: #8065bb;
$custom-dark: #000000;
JSON
{
  "hex": "#40299d",
  "rgb": {
    "r": 64,
    "g": 41,
    "b": 157
  },
  "hsl": {
    "h": 251.897,
    "s": 58.586,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38964,
    "c": 0.17589,
    "h": 283.7
  },
  "luminance": 0.0511
}

Semantic roles & 50–950 ramp

primary
#40299D
secondary
#ACBE64
accent
#E246C3
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #40299D

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

Preview Lab → · Contrast checker → · Palette generator →

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