#4025B2#4025B2

#4025B2 is a dark, highly saturated violet. Relative luminance 0.056; OKLCH L 40.6% C 0.205 H 280.9°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#4025B2
RGBrgb(64, 37, 178)
HSLhsl(251, 66%, 42%)
HSVhsv(251, 79%, 70%)
CMYKcmyk(64%, 79.2%, 0%, 30.2%)
CIE-LABlab(28.45, 50.65, -69.67)
CIE-LCHlch(28.45, 86.14, 306.02°)
OKLaboklab(40.59% 0.0389 -0.2011)
OKLCHoklch(40.59% 0.205 280.9)
XYZxyz(10.8093, 5.6266, 42.6273)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4025B2 #97B225
analogous
#2551B2 #4025B2 #8625B2
triadic
#4025B2 #B24025 #25B240
tetradic
#4025B2 #B22551 #97B225 #25B286
square
#4025B2 #B22551 #97B225 #25B286
split-complementary
#4025B2 #B28625 #51B225
monochromatic
#1C104D #2E1A7F #4025B2 #5B3DD7 #8670E1

Accessibility & contrast

On white

9.88
#4025B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4025B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4025B2#FFFFFF#000000##FFFFFF
##4025B21.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B6
Deuteranopia (green-blind)
#003EB0
Tritanopia (blue-blind)
#004F6B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4025b2;
/* rgb */ color: rgb(64, 37, 178);
/* oklch */ color: oklch(40.6% 0.205 280.9);
Tailwind
colors: {
  custom: {
    50: '#8464ca',
    500: '#4025b2',
    950: '#000000',
  },
}
SCSS
$custom: #4025b2;
$custom-light: #8464ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4025b2",
  "rgb": {
    "r": 64,
    "g": 37,
    "b": 178
  },
  "hsl": {
    "h": 251.489,
    "s": 65.581,
    "l": 42.157
  },
  "oklch": {
    "l": 0.40587,
    "c": 0.20479,
    "h": 280.9
  },
  "luminance": 0.05627
}

Semantic roles & 50–950 ramp

primary
#4025B2
secondary
#B6C86B
accent
#E93FC8
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4025B2

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

Preview Lab → · Contrast checker → · Palette generator →

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