#40259C#40259C

#40259C is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.3% C 0.179 H 284.6°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#40259C
RGBrgb(64, 37, 156)
HSLhsl(254, 62%, 38%)
HSVhsv(254, 76%, 61%)
CMYKcmyk(59%, 76.3%, 0%, 38.8%)
CIE-LABlab(26.19, 44.11, -60.10)
CIE-LCHlch(26.19, 74.55, 306.27°)
OKLaboklab(38.34% 0.045 -0.1731)
OKLCHoklch(38.34% 0.179 284.6)
XYZxyz(8.7748, 4.8129, 31.9126)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40259C #819C25
analogous
#25469C #40259C #7B259C
triadic
#40259C #9C4025 #259C40
tetradic
#40259C #9C2546 #819C25 #259C7B
square
#40259C #9C2546 #819C25 #259C7B
split-complementary
#40259C #9C7B25 #469C25
monochromatic
#170E39 #2C196B #40259C #5431CD #7D62DA

Accessibility & contrast

On white

10.70
#40259C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#40259C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40259C
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40259C#FFFFFF#000000##FFFFFF
##40259C1.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419F
Deuteranopia (green-blind)
#003A9A
Tritanopia (blue-blind)
#0C475F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #40259c;
/* rgb */ color: rgb(64, 37, 156);
/* oklch */ color: oklch(38.3% 0.179 284.6);
Tailwind
colors: {
  custom: {
    50: '#8063ba',
    500: '#40259c',
    950: '#000000',
  },
}
SCSS
$custom: #40259c;
$custom-light: #8063ba;
$custom-dark: #000000;
JSON
{
  "hex": "#40259c",
  "rgb": {
    "r": 64,
    "g": 37,
    "b": 156
  },
  "hsl": {
    "h": 253.613,
    "s": 61.658,
    "l": 37.843
  },
  "oklch": {
    "l": 0.38335,
    "c": 0.17889,
    "h": 284.6
  },
  "luminance": 0.04813
}

Semantic roles & 50–950 ramp

primary
#40259C
secondary
#A9BF5E
accent
#E543C0
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #40259C

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

Preview Lab → · Contrast checker → · Palette generator →

#40259C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva