#40299E#40299E

#40299E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.177 H 283.6°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#40299E
RGBrgb(64, 41, 158)
HSLhsl(252, 59%, 39%)
HSVhsv(252, 74%, 62%)
CMYKcmyk(59.5%, 74.1%, 0%, 38%)
CIE-LABlab(27.14, 42.59, -59.77)
CIE-LCHlch(27.14, 73.39, 305.48°)
OKLaboklab(39.06% 0.0415 -0.1722)
OKLCHoklch(39.06% 0.177 283.6)
XYZxyz(9.0769, 5.1439, 32.8557)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40299E #879E29
analogous
#294D9E #40299E #7B299E
triadic
#40299E #9E4029 #299E40
tetradic
#40299E #9E294D #879E29 #299E7B
square
#40299E #9E294D #879E29 #299E7B
split-complementary
#40299E #9E7B29 #4D9E29
monochromatic
#19103D #2C1C6D #40299E #5639CC #7F69D8

Accessibility & contrast

On white

10.35
#40299E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#40299E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40299E
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40299E#FFFFFF#000000##FFFFFF
##40299E1.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#003C9C
Tritanopia (blue-blind)
#054961
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #40299e;
/* rgb */ color: rgb(64, 41, 158);
/* oklch */ color: oklch(39.1% 0.177 283.6);
Tailwind
colors: {
  custom: {
    50: '#8065bc',
    500: '#40299e',
    950: '#000000',
  },
}
SCSS
$custom: #40299e;
$custom-light: #8065bc;
$custom-dark: #000000;
JSON
{
  "hex": "#40299e",
  "rgb": {
    "r": 64,
    "g": 41,
    "b": 158
  },
  "hsl": {
    "h": 251.795,
    "s": 58.794,
    "l": 39.02
  },
  "oklch": {
    "l": 0.39062,
    "c": 0.17713,
    "h": 283.6
  },
  "luminance": 0.05144
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #40299E

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

Preview Lab → · Contrast checker → · Palette generator →

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