#40259B#40259B

#40259B is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.2% C 0.178 H 284.8°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#40259B
RGBrgb(64, 37, 155)
HSLhsl(254, 61%, 38%)
HSVhsv(254, 76%, 61%)
CMYKcmyk(58.7%, 76.1%, 0%, 39.2%)
CIE-LABlab(26.10, 43.81, -59.65)
CIE-LCHlch(26.10, 74.01, 306.29°)
OKLaboklab(38.24% 0.0453 -0.1718)
OKLCHoklch(38.24% 0.178 284.8)
XYZxyz(8.6905, 4.7791, 31.4685)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40259B #809B25
analogous
#25459B #40259B #7B259B
triadic
#40259B #9B4025 #259B40
tetradic
#40259B #9B2545 #809B25 #259B7B
square
#40259B #9B2545 #809B25 #259B7B
split-complementary
#40259B #9B7B25 #459B25
monochromatic
#170D38 #2C196A #40259B #5431CC #7D61D9

Accessibility & contrast

On white

10.74
#40259B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40259B
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40259B#FFFFFF#000000##FFFFFF
##40259B1.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419E
Deuteranopia (green-blind)
#003A99
Tritanopia (blue-blind)
#0E465E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #40259b;
/* rgb */ color: rgb(64, 37, 155);
/* oklch */ color: oklch(38.2% 0.178 284.8);
Tailwind
colors: {
  custom: {
    50: '#8063ba',
    500: '#40259b',
    950: '#000000',
  },
}
SCSS
$custom: #40259b;
$custom-light: #8063ba;
$custom-dark: #000000;
JSON
{
  "hex": "#40259b",
  "rgb": {
    "r": 64,
    "g": 37,
    "b": 155
  },
  "hsl": {
    "h": 253.729,
    "s": 61.458,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38236,
    "c": 0.17768,
    "h": 284.8
  },
  "luminance": 0.0478
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #40259B

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

Preview Lab → · Contrast checker → · Palette generator →

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