#4025AA#4025AA

#4025AA is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.8% C 0.195 H 282.2°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#4025AA
RGBrgb(64, 37, 170)
HSLhsl(252, 64%, 41%)
HSVhsv(252, 78%, 67%)
CMYKcmyk(62.4%, 78.2%, 0%, 33.3%)
CIE-LABlab(27.61, 48.29, -66.26)
CIE-LCHlch(27.61, 81.98, 306.08°)
OKLaboklab(39.76% 0.0412 -0.1911)
OKLCHoklch(39.76% 0.195 282.2)
XYZxyz(10.0294, 5.3147, 38.5197)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4025AA #8FAA25
analogous
#254DAA #4025AA #8225AA
triadic
#4025AA #AA4025 #25AA40
tetradic
#4025AA #AA254D #8FAA25 #25AA82
square
#4025AA #AA254D #8FAA25 #25AA82
split-complementary
#4025AA #AA8225 #4DAA25
monochromatic
#1A0F45 #2D1A78 #4025AA #5838D4 #826BDF

Accessibility & contrast

On white

10.18
#4025AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#4025AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4025AA
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4025AA#FFFFFF#000000##FFFFFF
##4025AA1.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AE
Deuteranopia (green-blind)
#003CA8
Tritanopia (blue-blind)
#004C67
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4025aa;
/* rgb */ color: rgb(64, 37, 170);
/* oklch */ color: oklch(39.8% 0.195 282.2);
Tailwind
colors: {
  custom: {
    50: '#8364c5',
    500: '#4025aa',
    950: '#000000',
  },
}
SCSS
$custom: #4025aa;
$custom-light: #8364c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4025aa",
  "rgb": {
    "r": 64,
    "g": 37,
    "b": 170
  },
  "hsl": {
    "h": 252.18,
    "s": 64.251,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39755,
    "c": 0.19549,
    "h": 282.2
  },
  "luminance": 0.05315
}

Semantic roles & 50–950 ramp

primary
#4025AA
secondary
#B2C566
accent
#E741C5
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4025AA

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

Preview Lab → · Contrast checker → · Palette generator →

#4025AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva