#40258F#40258F

#40258F is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.1% C 0.163 H 287.2°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#40258F
RGBrgb(64, 37, 143)
HSLhsl(255, 59%, 35%)
HSVhsv(255, 74%, 56%)
CMYKcmyk(55.2%, 74.1%, 0%, 43.9%)
CIE-LABlab(24.94, 40.19, -54.16)
CIE-LCHlch(24.94, 67.44, 306.58°)
OKLaboklab(37.07% 0.0483 -0.1558)
OKLCHoklch(37.07% 0.163 287.2)
XYZxyz(7.7324, 4.3959, 26.4223)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40258F #748F25
analogous
#253F8F #40258F #75258F
triadic
#40258F #8F4025 #258F40
tetradic
#40258F #8F253F #748F25 #258F75
square
#40258F #8F253F #748F25 #258F75
split-complementary
#40258F #8F7525 #3F8F25
monochromatic
#140C2E #2A185E #40258F #5632C0 #795AD4

Accessibility & contrast

On white

11.17
#40258F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#40258F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40258F
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40258F#FFFFFF#000000##FFFFFF
##40258F1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#1F4258
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #40258f;
/* rgb */ color: rgb(64, 37, 143);
/* oklch */ color: oklch(37.1% 0.163 287.2);
Tailwind
colors: {
  custom: {
    50: '#7e62b1',
    500: '#40258f',
    950: '#000000',
  },
}
SCSS
$custom: #40258f;
$custom-light: #7e62b1;
$custom-dark: #000000;
JSON
{
  "hex": "#40258f",
  "rgb": {
    "r": 64,
    "g": 37,
    "b": 143
  },
  "hsl": {
    "h": 255.283,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.37067,
    "c": 0.16306,
    "h": 287.2
  },
  "luminance": 0.04396
}

Semantic roles & 50–950 ramp

primary
#40258F
secondary
#A0B957
accent
#E246BA
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #40258F

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

Preview Lab → · Contrast checker → · Palette generator →

#40258F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva