#4025B5#4025B5

#4025B5 is a dark, highly saturated violet. Relative luminance 0.057; OKLCH L 40.9% C 0.208 H 280.5°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#4025B5
RGBrgb(64, 37, 181)
HSLhsl(251, 66%, 43%)
HSVhsv(251, 80%, 71%)
CMYKcmyk(64.6%, 79.6%, 0%, 29%)
CIE-LABlab(28.77, 51.53, -70.93)
CIE-LCHlch(28.77, 87.68, 306.00°)
OKLaboklab(40.9% 0.038 -0.2047)
OKLCHoklch(40.9% 0.208 280.5)
XYZxyz(11.1138, 5.7485, 44.2310)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4025B5 #9AB525
analogous
#2552B5 #4025B5 #8825B5
triadic
#4025B5 #B54025 #25B540
tetradic
#4025B5 #B52552 #9AB525 #25B588
square
#4025B5 #B52552 #9AB525 #25B588
split-complementary
#4025B5 #B58825 #52B525
monochromatic
#1C104F #2E1B82 #4025B5 #5C3FD8 #8772E2

Accessibility & contrast

On white

9.77
#4025B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4025B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4025B5#FFFFFF#000000##FFFFFF
##4025B51.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B9
Deuteranopia (green-blind)
#003EB2
Tritanopia (blue-blind)
#00516D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4025b5;
/* rgb */ color: rgb(64, 37, 181);
/* oklch */ color: oklch(40.9% 0.208 280.5);
Tailwind
colors: {
  custom: {
    50: '#8564cd',
    500: '#4025b5',
    950: '#000000',
  },
}
SCSS
$custom: #4025b5;
$custom-light: #8564cd;
$custom-dark: #000000;
JSON
{
  "hex": "#4025b5",
  "rgb": {
    "r": 64,
    "g": 37,
    "b": 181
  },
  "hsl": {
    "h": 251.25,
    "s": 66.055,
    "l": 42.745
  },
  "oklch": {
    "l": 0.40903,
    "c": 0.20824,
    "h": 280.5
  },
  "luminance": 0.05749
}

Semantic roles & 50–950 ramp

primary
#4025B5
secondary
#B8C96D
accent
#E93FC9
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #4025B5

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

Preview Lab → · Contrast checker → · Palette generator →

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